mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
AlsaSoundStream: Don't call join() on invalid thread
This can happen if initialization failed.
This commit is contained in:
@ -25,6 +25,7 @@ AlsaSound::~AlsaSound()
|
||||
// Give the opportunity to the audio thread
|
||||
// to realize we are stopping the emulation
|
||||
cv.notify_one();
|
||||
if (thread.joinable())
|
||||
thread.join();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user