diff --git a/include/components/controller.hpp b/include/components/controller.hpp index 45a8923f..945d843d 100644 --- a/include/components/controller.hpp +++ b/include/components/controller.hpp @@ -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 guard(m_mutex, std::adopt_lock);