Skip to content

Commit 22d2a98

Browse files
committed
Adds missing requeue logic
1 parent 75d019f commit 22d2a98

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

library/modules/EventManager.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,10 @@ static void manageTickEvent(color_ostream& out) {
427427
if ( toRequeue.empty() )
428428
return;
429429
for (auto pair : handlers[EventType::TICK]) {
430-
EventHandler &handler = pair.second;
431-
enqueueTickEvent(handler);
430+
if (toRequeue.count(pair.second)) {
431+
EventHandler &handler = pair.second;
432+
enqueueTickEvent(handler);
433+
}
432434
}
433435
}
434436

0 commit comments

Comments
 (0)