From ce80e05b258a77232c50fb5a8720333a9c4b3c63 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 2 Mar 2020 15:17:40 +0100 Subject: [PATCH] data-loop: leave the thread when leaving --- src/pipewire/data-loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipewire/data-loop.c b/src/pipewire/data-loop.c index 9446b2177..26c83ce9d 100644 --- a/src/pipewire/data-loop.c +++ b/src/pipewire/data-loop.c @@ -60,7 +60,7 @@ static void thread_cleanup(void *arg) struct pw_data_loop *this = arg; pw_log_debug(NAME" %p: leave thread", this); this->running = false; - pw_loop_enter(this->loop); + pw_loop_leave(this->loop); } static void *do_loop(void *user_data)