fix(controller): Try to acquire lock for 50ms on module update

Allow short bursts since we want to handle all events
when starting the modules.
This commit is contained in:
Michael Carlberg 2016-10-11 16:10:25 +02:00
parent 257b73d589
commit 44ca3bef2c
1 changed files with 1 additions and 1 deletions

View File

@ -407,7 +407,7 @@ class controller {
}
void on_module_update(string module_name) {
if (!m_mutex.try_lock())
if (!m_mutex.try_lock_for(50ms))
return;
std::lock_guard<std::timed_mutex> guard(m_mutex, std::adopt_lock);