Add restart logic

This commit is contained in:
Gregory John Casamento 2020-02-11 06:33:42 -05:00
parent 9953d7d132
commit d0e05bfc3f

View file

@ -92,6 +92,20 @@ BOOL _serverLaunchTested = NO;
NSDebugLog(@"Server found!!!");
break;
}
else
{
NS_DURING
{
NSWorkspace *ws = [NSWorkspace sharedWorkspace];
[ws launchApplication: SPEECH_RECOGNITION_SERVER
showIcon: NO
autolaunch: NO];
}
NS_HANDLER
{
}
NS_ENDHANDLER;
}
[NSThread sleepForTimeInterval: 0.1];
}