mirror of
https://github.com/gnustep/libs-ec.git
synced 2025-02-16 00:21:01 +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
17
EcCommand.m
17
EcCommand.m
|
@ -1831,11 +1831,18 @@ desiredName(Desired state)
|
|||
[startingTimer invalidate];
|
||||
EcExceptionMajor(nil, @"startingTimer reset %@", self);
|
||||
}
|
||||
startingTimer = [NSTimer scheduledTimerWithTimeInterval: ti
|
||||
target: self
|
||||
selector: _cmd
|
||||
userInfo: name
|
||||
repeats: NO];
|
||||
if (startingDate > 0.0)
|
||||
{
|
||||
startingTimer = [NSTimer scheduledTimerWithTimeInterval: ti
|
||||
target: self
|
||||
selector: _cmd
|
||||
userInfo: name
|
||||
repeats: NO];
|
||||
}
|
||||
else
|
||||
{
|
||||
NSLog(@"Startup cancelled in -starting: for %@", self);
|
||||
}
|
||||
}
|
||||
|
||||
- (NSDate*) startingDate
|
||||
|
|
Loading…
Reference in a new issue