1
0
Fork 0

Bug 1246, Nasal repeating timers fire immediately.

Initial delay is passed separately to interval in the
API, oops.
This commit is contained in:
James Turner 2013-11-09 08:01:57 -08:00
parent 23fa13c76b
commit af6131b556

View file

@ -126,7 +126,8 @@ public:
if (_singleShot) {
globals->get_event_mgr()->addEvent(_name, this, &TimerObj::invoke, _interval);
} else {
globals->get_event_mgr()->addTask(_name, this, &TimerObj::invoke, _interval);
globals->get_event_mgr()->addTask(_name, this, &TimerObj::invoke,
_interval, _interval /* delay */);
}
}