mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +02:00
Fix concurrency issue in plugin group shutdown
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user