From: andy Date: Wed, 24 Mar 2004 18:37:58 +0000 (+0000) Subject: Failed timers should log errors rather than silently eating them. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b3ce2c3cfe91358f59a00c42606c86bba4c25e6c;p=flightgear.git Failed timers should log errors rather than silently eating them. --- diff --git a/src/Scripting/NasalSys.cxx b/src/Scripting/NasalSys.cxx index 938c740e1..d198a3a06 100644 --- a/src/Scripting/NasalSys.cxx +++ b/src/Scripting/NasalSys.cxx @@ -506,6 +506,8 @@ void FGNasalSys::setTimer(naRef args) void FGNasalSys::handleTimer(NasalTimer* t) { naCall(_context, t->handler, naNil(), naNil(), naNil()); + if(naGetError(_context)) + logError(); gcRelease(t->gcKey); }