mirror of
https://github.com/gnustep/libs-ec.git
synced 2025-02-23 03:41:23 +00:00
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:
parent
7171041de9
commit
2ece288042
1 changed files with 154 additions and 145 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue