mirror of https://github.com/mgba-emu/mgba.git
SDL: Fix deadlock if game crashes
This commit is contained in:
parent
91ee9822d1
commit
65886b02f4
|
@ -300,6 +300,7 @@ int mSDLRun(struct mSDLRenderer* renderer, struct mArguments* args) {
|
|||
if (mCoreThreadHasCrashed(&thread)) {
|
||||
didFail = true;
|
||||
printf("The game crashed!\n");
|
||||
mCoreThreadEnd(&thread);
|
||||
}
|
||||
} else {
|
||||
didFail = true;
|
||||
|
|
Loading…
Reference in New Issue