Compare commits

...

1 Commits

Author SHA1 Message Date
Alexey Rybalchenko
e642262468
Fix race condition in the control plugin 2018-09-12 16:14:32 +02:00

View File

@ -227,7 +227,7 @@ auto Control::WaitForNextState() -> DeviceState
unique_lock<mutex> lock{fEventsMutex};
while (fEvents.empty())
{
fNewEvent.wait(lock);
fNewEvent.wait_for(lock, chrono::milliseconds(50));
}
auto result = fEvents.front();