mirror of
https://github.com/gnustep/libs-ec.git
synced 2025-02-21 02:41:11 +00:00
improve clearing alarms on client startup
This commit is contained in:
parent
e3bee4fc64
commit
e5963632fd
2 changed files with 5 additions and 3 deletions
|
@ -3,6 +3,8 @@
|
|||
* EcControl.m: If we get an alarm clear before we have reported the
|
||||
original alarm, we should report the alarm before reporting the
|
||||
clear.
|
||||
* EcCommand.m: Be slower to clear alarms on client startup; in case
|
||||
it's just going to crash fairly immediately.
|
||||
|
||||
2019-02-11 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
|
|
|
@ -729,16 +729,16 @@ static NSString* cmdWord(NSArray* a, unsigned int pos)
|
|||
/* See if we have a fitting client - and update records.
|
||||
*/
|
||||
r = [self findIn: clients byObject: (id)from];
|
||||
if (r != nil)
|
||||
[r gnip: num];
|
||||
if (r != nil && num > 2)
|
||||
{
|
||||
NSString *managedObject;
|
||||
NSString *n;
|
||||
EcAlarm *a;
|
||||
|
||||
[r gnip: num];
|
||||
n = [r name];
|
||||
|
||||
/* After the first ping response from a client we assume
|
||||
/* After the first few ping responses from a client we assume
|
||||
* that client has completed startup and is running OK.
|
||||
* We can therefore clear any loss of client alarm, any
|
||||
* alarm for being unable to register, and launch failure
|
||||
|
|
Loading…
Reference in a new issue