forked from I2P_Developers/i2p.i2p
Mac OS X Launcher: Misc changes in ObjC, forwarding sendUserNotification to Swift.
This commit is contained in:
@@ -63,8 +63,8 @@
|
||||
}
|
||||
|
||||
- (void) requestRestart
|
||||
{
|
||||
self.userRequestedRestart = YES;
|
||||
|
||||
{ self.userRequestedRestart = YES;
|
||||
kill([self.routerTask processIdentifier], SIGHUP);
|
||||
}
|
||||
|
||||
@@ -84,7 +84,9 @@
|
||||
{
|
||||
NSLog(@"Expection occurred %@", [e reason]);
|
||||
self.isRouterRunning = NO;
|
||||
|
||||
[[[RouterProcessStatus alloc] init] triggerEventWithEn:@"router_exception" details:[e reason]];
|
||||
|
||||
[[SBridge sharedInstance] setCurrentRouterInstance:nil];
|
||||
sendUserNotification(@"An error occured, can't start the I2P Router", [e reason]);
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user