Disarm before tick (can be deleted in tick)

This commit is contained in:
simon.kagstrom 2010-01-30 16:59:46 +00:00
parent 54115df233
commit d7a8f558df

View File

@ -63,8 +63,8 @@ void TimerController::tick()
if (!cur) if (!cur)
continue; continue;
cur->tick();
if (cur->timeout == 0) if (cur->timeout == 0)
this->disarm(cur); this->disarm(cur);
cur->tick();
} }
} }