diff --git a/library/modules/EventManager.cpp b/library/modules/EventManager.cpp index b6790130e0..29634c9c07 100644 --- a/library/modules/EventManager.cpp +++ b/library/modules/EventManager.cpp @@ -427,8 +427,10 @@ static void manageTickEvent(color_ostream& out) { if ( toRequeue.empty() ) return; for (auto pair : handlers[EventType::TICK]) { - EventHandler &handler = pair.second; - enqueueTickEvent(handler); + if (toRequeue.count(pair.second)) { + EventHandler &handler = pair.second; + enqueueTickEvent(handler); + } } }