From: cmitu <31816814+cmitu@users.noreply.github.com> Date: Sun, 26 Apr 2020 12:20:14 +0000 (+0300) Subject: cdriso: fix a disk switching deadlock X-Git-Tag: r24l~652^2 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49942a161128c2194b6a6432091b97fcc9f3c24a;p=pcsx_rearmed.git cdriso: fix a disk switching deadlock --- 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; }