Skip to content

Commit

Permalink
Adds missing requeue logic
Browse files Browse the repository at this point in the history
  • Loading branch information
cppcooper committed Dec 9, 2022
1 parent f273dd1 commit 542cd4f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions library/modules/EventManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,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);
}
}
}

Expand Down

0 comments on commit 542cd4f

Please sign in to comment.