From 65886b02f476f7ba10c9b097d51d013bdeb8bc72 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Mon, 11 Jul 2022 00:24:42 -0700 Subject: [PATCH] SDL: Fix deadlock if game crashes --- src/platform/sdl/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platform/sdl/main.c b/src/platform/sdl/main.c index ad7ed4250..96a797986 100644 --- a/src/platform/sdl/main.c +++ b/src/platform/sdl/main.c @@ -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;