Fix concurrency issue in plugin group shutdown

This commit is contained in:
Robbert van der Helm
2020-12-10 21:40:52 +01:00
parent c05040d98b
commit ac0d83e555
3 changed files with 9 additions and 1 deletions
+5
View File
@@ -276,4 +276,9 @@ class GroupBridge {
* @see handle_plugin_dispatch
*/
boost::asio::steady_timer shutdown_timer;
/**
* A mutex to prevent two threads from simultaneously modifying the shutdown
* timer when multiple plugins exit at the same time.
*/
std::mutex shutdown_timer_mutex;
};