Call ecAwaken only after registration at the name server was successful

This commit is contained in:
Wolfgang Lux 2018-11-09 16:25:23 +01:00
parent b19fcbf47a
commit b4cb9b683c
2 changed files with 11 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2018-11-09 Wolfgang Lux <wolfgang.lux@gmail.com>
EcProcess.m: Call ecAwaken only after registration at the name
server was successful.
2018-10-24 Richard Frith-Macdonald <rfm@gnu.org>
EcAlerter.m: Fix off by one error in getting string after colon.

View file

@ -3352,11 +3352,6 @@ NSLog(@"Ignored attempt to set timer interval to %g ... using 10.0", interval);
NSRunLoop *loop;
NSDate *future;
/* Called to permit subclasses to initialise before entering run loop.
*/
[self ecAwaken];
RELEASE(arp);
arp = [NSAutoreleasePool new];
if (YES == cmdIsTransient)
{
[self cmdWarn: @"Attempted to run transient process."];
@ -3419,6 +3414,12 @@ NSLog(@"Ignored attempt to set timer interval to %g ... using 10.0", interval);
[self _connectionRegistered];
/* Called to permit subclasses to initialise before entering run loop.
*/
[self ecAwaken];
RELEASE(arp);
arp = [NSAutoreleasePool new];
[self cmdAudit: @"Started '%@' in %g seconds",
[self cmdName], [NSDate timeIntervalSinceReferenceDate] - initAt];
[self cmdFlushLogs];