mirror of
https://github.com/gnustep/libs-ec.git
synced 2025-02-21 02:41:11 +00:00
check for the case where a starting process is stopped during the -startup: call
This commit is contained in:
parent
2da8d74c23
commit
3c80be4ecc
1 changed files with 12 additions and 5 deletions
|
@ -1831,11 +1831,18 @@ desiredName(Desired state)
|
||||||
[startingTimer invalidate];
|
[startingTimer invalidate];
|
||||||
EcExceptionMajor(nil, @"startingTimer reset %@", self);
|
EcExceptionMajor(nil, @"startingTimer reset %@", self);
|
||||||
}
|
}
|
||||||
|
if (startingDate > 0.0)
|
||||||
|
{
|
||||||
startingTimer = [NSTimer scheduledTimerWithTimeInterval: ti
|
startingTimer = [NSTimer scheduledTimerWithTimeInterval: ti
|
||||||
target: self
|
target: self
|
||||||
selector: _cmd
|
selector: _cmd
|
||||||
userInfo: name
|
userInfo: name
|
||||||
repeats: NO];
|
repeats: NO];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
NSLog(@"Startup cancelled in -starting: for %@", self);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSDate*) startingDate
|
- (NSDate*) startingDate
|
||||||
|
|
Loading…
Reference in a new issue