diff --git a/fairmq/plugins/Control.cxx b/fairmq/plugins/Control.cxx index 8421cd77..ce5b8397 100644 --- a/fairmq/plugins/Control.cxx +++ b/fairmq/plugins/Control.cxx @@ -229,7 +229,7 @@ auto Control::WaitForNextState() -> DeviceState unique_lock lock{fEventsMutex}; while (fEvents.empty()) { - fNewEvent.wait(lock); + fNewEvent.wait_for(lock, chrono::milliseconds(50)); } auto result = fEvents.front();