13
0

Fix prev commit (properly stop pulse)

This commit is contained in:
Robin Gareus 2021-07-21 05:56:42 +02:00
parent 03a17df68c
commit 38a4bb6736
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -664,10 +664,10 @@ PulseAudioBackend::stop ()
_run = false;
pa_threaded_mainloop_lock (p_mainloop);
if (pa_stream_is_corked (p_stream) == 0) {
cork_pulse (true);
}
pa_threaded_mainloop_lock (p_mainloop);
sync_pulse (pa_stream_flush (p_stream, stream_operation_cb, this));
if (pthread_join (_main_thread, &status)) {