diff --git a/fairmq/plugins/Control.cxx b/fairmq/plugins/Control.cxx index 084b13d4..a2521e57 100644 --- a/fairmq/plugins/Control.cxx +++ b/fairmq/plugins/Control.cxx @@ -227,7 +227,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();