Failed timers should log errors rather than silently eating them.
This commit is contained in:
parent
26137b1eca
commit
b3ce2c3cfe
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue