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 Mar 16, 2023
1 parent 75d019f commit 22d2a98
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 @@ -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);
}
}
}

Expand Down

0 comments on commit 22d2a98

Please sign in to comment.