mirror of
https://github.com/gnustep/libs-ec.git
synced 2025-02-23 11:51:03 +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)
|
if (NO == _inTimeout && YES == _isRunning && NO == _shouldStop)
|
||||||
{
|
{
|
||||||
_inTimeout = YES;
|
_inTimeout = YES;
|
||||||
|
NS_DURING
|
||||||
|
{
|
||||||
if (0 == resyncFlag)
|
if (0 == resyncFlag)
|
||||||
{
|
{
|
||||||
/* Check for alarms.
|
/* 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];
|
[_alarmLock unlock];
|
||||||
now = time(0);
|
now = time(0);
|
||||||
if (YES == heartbeat(now))
|
if (YES == heartbeat(now))
|
||||||
|
|
Loading…
Reference in a new issue