From 49942a161128c2194b6a6432091b97fcc9f3c24a Mon Sep 17 00:00:00 2001 From: cmitu <31816814+cmitu@users.noreply.github.com> Date: Sun, 26 Apr 2020 15:20:14 +0300 Subject: [PATCH] cdriso: fix a disk switching deadlock --- libpcsxcore/cdriso.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libpcsxcore/cdriso.c b/libpcsxcore/cdriso.c index 07adbe67..c8eacb87 100644 --- a/libpcsxcore/cdriso.c +++ b/libpcsxcore/cdriso.c @@ -1768,7 +1768,10 @@ static long CALLBACK ISOclose(void) { memset(cdbuffer, 0, sizeof(cdbuffer)); CDR_getBuffer = ISOgetBuffer; - readThreadStop(); + if (Config.AsyncCD) { + readThreadStop(); + } + return 0; } -- 2.39.5