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