Fix comparison for ready-to-dispatch timers to prevent reactor from
spinning.
This commit is contained in:
parent
8ce19d9d85
commit
d8dc53c144
@ -99,7 +99,7 @@ public:
|
||||
void dispatch_timers(const Time& time)
|
||||
{
|
||||
Comparator comp;
|
||||
while (!heap_.empty() && comp(heap_[0]->time_, time))
|
||||
while (!heap_.empty() && !comp(time, heap_[0]->time_))
|
||||
{
|
||||
timer_base* t = heap_[0];
|
||||
remove_timer(t);
|
||||
|
Loading…
Reference in New Issue
Block a user