AlsaSoundStream: Don't call join() on invalid thread

This can happen if initialization failed.
This commit is contained in:
Stenzek 2019-10-10 00:07:25 +10:00
parent 6e613f4f82
commit 1c5441aa40

View File

@ -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()