summaryrefslogtreecommitdiff
path: root/src/modules/jack/module-jack-source.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/jack/module-jack-source.c')
-rw-r--r--src/modules/jack/module-jack-source.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/jack/module-jack-source.c b/src/modules/jack/module-jack-source.c
index 2d152b38..6b128402 100644
--- a/src/modules/jack/module-jack-source.c
+++ b/src/modules/jack/module-jack-source.c
@@ -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);