mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
AlsaSoundStream: Don't call join() on invalid thread
This can happen if initialization failed.
This commit is contained in:
parent
6e613f4f82
commit
1c5441aa40
1 changed files with 2 additions and 1 deletions
|
@ -25,7 +25,8 @@ AlsaSound::~AlsaSound()
|
||||||
// Give the opportunity to the audio thread
|
// Give the opportunity to the audio thread
|
||||||
// to realize we are stopping the emulation
|
// to realize we are stopping the emulation
|
||||||
cv.notify_one();
|
cv.notify_one();
|
||||||
thread.join();
|
if (thread.joinable())
|
||||||
|
thread.join();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AlsaSound::Init()
|
bool AlsaSound::Init()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue