From af6131b5567d8ca05d02d48ff3e26013802bebb8 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sat, 9 Nov 2013 08:01:57 -0800 Subject: [PATCH] Bug 1246, Nasal repeating timers fire immediately. Initial delay is passed separately to interval in the API, oops. --- src/Scripting/NasalSys.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Scripting/NasalSys.cxx b/src/Scripting/NasalSys.cxx index e55ba5a31..24a0ecdbf 100644 --- a/src/Scripting/NasalSys.cxx +++ b/src/Scripting/NasalSys.cxx @@ -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 */); } }