]> git.mxchange.org Git - flightgear.git/commitdiff
Failed timers should log errors rather than silently eating them.
authorandy <andy>
Wed, 24 Mar 2004 18:37:58 +0000 (18:37 +0000)
committerandy <andy>
Wed, 24 Mar 2004 18:37:58 +0000 (18:37 +0000)
src/Scripting/NasalSys.cxx

index 938c740e1ac119d0cb87021a67d674083ed4b30a..d198a3a069444f4339671f6677713e9c7a67d8eb 100644 (file)
@@ -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);
 }