Don't autolaunch on config change unless autolaunch state changed: we don't want a configuration update to launch processes which were manully stopped.

This commit is contained in:
Richard Frith-Macdonald 2020-08-10 21:52:37 +01:00
parent 85ba581bac
commit c3fb7fdbdf

View file

@ -1531,6 +1531,7 @@ desiredName(Desired state)
- (void) setConfiguration: (NSDictionary*)c
{
BOOL wasDisabled = [self disabled];
BOOL wasAuto = [self autolaunch];
ASSIGNCOPY(conf, c);
if ([self disabled])
@ -1548,7 +1549,7 @@ desiredName(Desired state)
}
else if ([self autolaunch])
{
if (desired != Live)
if (NO == wasAuto && desired != Live)
{
[self setDesired: Live reason: @"autolaunch"];
}