diff options
Diffstat (limited to 'alc/backends/pulseaudio.cpp')
-rw-r--r-- | alc/backends/pulseaudio.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/alc/backends/pulseaudio.cpp b/alc/backends/pulseaudio.cpp index 5902750b..e40204f5 100644 --- a/alc/backends/pulseaudio.cpp +++ b/alc/backends/pulseaudio.cpp @@ -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(); } } |