Mac OS X Launcher: Misc changes in ObjC, forwarding sendUserNotification to Swift.

This commit is contained in:
meeh
2018-12-08 09:14:33 +00:00
parent a0d356bc56
commit dfcc616cb3
4 changed files with 15 additions and 6 deletions

View File

@@ -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;