| 17 | } |
| 18 | |
| 19 | void ClientPluginContext::OnDestroy() { |
| 20 | if (work_thread_) { |
| 21 | work_thread_->Exit(); |
| 22 | } |
| 23 | if (timer_) { |
| 24 | timer_->stop_all_timers(); |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | void ClientPluginContext::PostWorkTask(std::function<void()>&& task) { |
| 29 | if (work_thread_) { |