mirror of https://github.com/polybar/polybar.git
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:
parent
257b73d589
commit
44ca3bef2c
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue