mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
jack: Prevent crash on jack server shutdown
This commit is contained in:
parent
cdc2769162
commit
f081c152f3
2 changed files with 7 additions and 6 deletions
|
|
@ -425,12 +425,12 @@ void pa__done(pa_module*m) {
|
|||
if (!(u = m->userdata))
|
||||
return;
|
||||
|
||||
if (u->client)
|
||||
jack_client_close(u->client);
|
||||
|
||||
if (u->source)
|
||||
pa_source_unlink(u->source);
|
||||
|
||||
if (u->client)
|
||||
jack_client_close(u->client);
|
||||
|
||||
if (u->thread) {
|
||||
pa_asyncmsgq_send(u->thread_mq.inq, NULL, PA_MESSAGE_SHUTDOWN, NULL, 0, NULL);
|
||||
pa_thread_free(u->thread);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue