Skip to content
Permalink
Browse files

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

This can happen if initialization failed.
  • Loading branch information...
stenzek committed Oct 9, 2019
1 parent 6e613f4 commit 1c5441aa40eb81e51682477921c02ad21cf57aa9
Showing with 2 additions and 1 deletion.
  1. +2 −1 Source/Core/AudioCommon/AlsaSoundStream.cpp
@@ -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()

0 comments on commit 1c5441a

Please sign in to comment.
You can’t perform that action at this time.