SDL: Fix deadlock if game crashes

This commit is contained in:
Vicki Pfau 2022-07-11 00:24:42 -07:00
parent 91ee9822d1
commit 65886b02f4
1 changed files with 1 additions and 0 deletions

View File

@ -300,6 +300,7 @@ int mSDLRun(struct mSDLRenderer* renderer, struct mArguments* args) {
if (mCoreThreadHasCrashed(&thread)) { if (mCoreThreadHasCrashed(&thread)) {
didFail = true; didFail = true;
printf("The game crashed!\n"); printf("The game crashed!\n");
mCoreThreadEnd(&thread);
} }
} else { } else {
didFail = true; didFail = true;