Protect the call to pa_mainloop_quit with the mutex
This commit is contained in:
@@ -365,7 +365,10 @@ public:
|
||||
{
|
||||
if(mThread.joinable())
|
||||
{
|
||||
pa_mainloop_quit(mMainloop, 0);
|
||||
{
|
||||
std::lock_guard<std::mutex> _{mMutex};
|
||||
pa_mainloop_quit(mMainloop, 0);
|
||||
}
|
||||
mThread.join();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user