jack: Prevent crash on jack server shutdown

This commit is contained in:
David Henningsson 2010-05-03 11:41:47 +02:00 committed by Lennart Poettering
parent cdc2769162
commit f081c152f3
2 changed files with 7 additions and 6 deletions

View file

@ -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);