mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 02:10:48 +00:00
Add restart logic
This commit is contained in:
parent
9953d7d132
commit
d0e05bfc3f
1 changed files with 14 additions and 0 deletions
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue