mirror of https://github.com/snes9xgit/snes9x.git
Fix race condition that could cause crash on exit
This commit is contained in:
parent
38a4b9b3b5
commit
de248230b7
|
@ -238,6 +238,7 @@ static NSString * const kKeyboardPrefs = @"KeyboardConfig";
|
|||
|
||||
- (IBAction)terminate:(id)sender
|
||||
{
|
||||
[self.s9xEngine stop];
|
||||
[NSApp terminate:sender];
|
||||
}
|
||||
|
||||
|
|
|
@ -3013,7 +3013,7 @@ void QuitWithFatalError ( NSString *message)
|
|||
|
||||
- (void)stop
|
||||
{
|
||||
pauseEmulation = true;
|
||||
S9xExit();
|
||||
}
|
||||
|
||||
- (BOOL)isRunning
|
||||
|
|
Loading…
Reference in New Issue