check for the case where a starting process is stopped during the -startup: call

This commit is contained in:
Richard Frith-Macdonald 2020-07-17 16:59:50 +01:00
parent 2da8d74c23
commit 3c80be4ecc

View file

@ -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