fix missing flag setting and add exception handler for safety

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/devmodules/dev-libs/ec@34907 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2012-03-08 13:09:36 +00:00
parent 7171041de9
commit 2ece288042

View file

@ -1435,6 +1435,8 @@ static NSLock *classLock = nil;
if (NO == _inTimeout && YES == _isRunning && NO == _shouldStop)
{
_inTimeout = YES;
NS_DURING
{
if (0 == resyncFlag)
{
/* Check for alarms.
@ -1617,6 +1619,13 @@ static NSLock *classLock = nil;
}
}
}
NS_HANDLER
{
NSLog(@"Problem in housekeeping timeout: %@", localException);
}
NS_ENDHANDLER
_inTimeout = NO;
}
[_alarmLock unlock];
now = time(0);
if (YES == heartbeat(now))