fix missing clear

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/ec/trunk@38060 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2014-09-04 21:24:19 +00:00
parent 055b0ff2f9
commit 74fab1295d
3 changed files with 23 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2014-09-04 Richard Frith-Macdonald <rfm@gnu.org>
* EcProcess.m: Fix missing clear after unable to register with name
server.
2014-09-02 Richard Frith-Macdonald <rfm@gnu.org>
* EcControl.m: If a Command server on a host registers and we already

View file

@ -153,7 +153,8 @@
return nil;
}
when = [[NSDate alloc] initWithTimeIntervalSinceNow: 0.1];
[[NSRunLoop currentRunLoop] runMode: NSDefaultRunLoopMode beforeDate: when];
[[NSRunLoop currentRunLoop] runMode: NSDefaultRunLoopMode
beforeDate: when];
[when release];
}
}
@ -311,7 +312,8 @@
return;
}
when = [[NSDate alloc] initWithTimeIntervalSinceNow: 0.1];
[[NSRunLoop currentRunLoop] runMode: NSDefaultRunLoopMode beforeDate: when];
[[NSRunLoop currentRunLoop] runMode: NSDefaultRunLoopMode
beforeDate: when];
[when release];
}
}

View file

@ -2349,6 +2349,20 @@ NSLog(@"Ignored attempt to set timer interval to %g ... using 10.0", interval);
[arp release];
return 2;
}
else
{
EcAlarm *a;
a = [EcAlarm alarmForManagedObject: nil
at: nil
withEventType: EcAlarmEventTypeProcessingError
probableCause: EcAlarmSoftwareProgramAbnormallyTerminated
specificProblem: @"Unable to register"
perceivedSeverity: EcAlarmSeverityCleared
proposedRepairAction: nil
additionalText: nil];
[self alarm: a];
}
[c setDelegate: self];
[[NSNotificationCenter defaultCenter]