fix error in last change

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/ec/trunk@38319 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2015-02-02 09:24:54 +00:00
parent ebd5737558
commit 60c2ff2d73
2 changed files with 6 additions and 2 deletions

View file

@ -1,4 +1,4 @@
2015-01-30 Richard Frith-Macdonald <rfm@gnu.org>
2015-02-02 Richard Frith-Macdonald <rfm@gnu.org>
* EcAlarmDestination.m: When coalescing alarms, do not coalesce a
clear with anything other than an earlier clear for the same event.

View file

@ -84,7 +84,11 @@
[_alarmQueue addObject: event];
if (NSNotFound != index)
{
[_alarmQueue removeObjectAtIndex: index];
event = [_alarmQueue objectAtIndex: index];
if ([event perceivedSeverity] == EcAlarmSeverityCleared)
{
[_alarmQueue removeObjectAtIndex: index];
}
}
}
else