cdriso: fix a disk switching deadlock
authorcmitu <31816814+cmitu@users.noreply.github.com>
Sun, 26 Apr 2020 12:20:14 +0000 (15:20 +0300)
committercmitu <31816814+cmitu@users.noreply.github.com>
Sun, 26 Apr 2020 12:20:14 +0000 (15:20 +0300)
libpcsxcore/cdriso.c

index 07adbe6..c8eacb8 100644 (file)
@@ -1768,7 +1768,10 @@ static long CALLBACK ISOclose(void) {
        memset(cdbuffer, 0, sizeof(cdbuffer));
        CDR_getBuffer = ISOgetBuffer;
 
-  readThreadStop();
+       if (Config.AsyncCD) {
+               readThreadStop();
+       }
+
        return 0;
 }