Bug 1246, Nasal repeating timers fire immediately.
Initial delay is passed separately to interval in the API, oops.
This commit is contained in:
parent
23fa13c76b
commit
af6131b556
1 changed files with 2 additions and 1 deletions
|
@ -126,7 +126,8 @@ public:
|
||||||
if (_singleShot) {
|
if (_singleShot) {
|
||||||
globals->get_event_mgr()->addEvent(_name, this, &TimerObj::invoke, _interval);
|
globals->get_event_mgr()->addEvent(_name, this, &TimerObj::invoke, _interval);
|
||||||
} else {
|
} else {
|
||||||
globals->get_event_mgr()->addTask(_name, this, &TimerObj::invoke, _interval);
|
globals->get_event_mgr()->addTask(_name, this, &TimerObj::invoke,
|
||||||
|
_interval, _interval /* delay */);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue