Fix race condition that could cause crash on exit

This commit is contained in:
Michael Buckley 2019-11-03 11:37:51 -08:00
parent 38a4b9b3b5
commit de248230b7
2 changed files with 2 additions and 1 deletions

View File

@ -238,6 +238,7 @@ static NSString * const kKeyboardPrefs = @"KeyboardConfig";
- (IBAction)terminate:(id)sender
{
[self.s9xEngine stop];
[NSApp terminate:sender];
}

View File

@ -3013,7 +3013,7 @@ void QuitWithFatalError ( NSString *message)
- (void)stop
{
pauseEmulation = true;
S9xExit();
}
- (BOOL)isRunning