Fix comparison for ready-to-dispatch timers to prevent reactor from

spinning.
This commit is contained in:
chris_kohlhoff 2006-05-30 12:54:36 +00:00
parent 8ce19d9d85
commit d8dc53c144

View File

@ -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);