data-loop: leave the thread when leaving

This commit is contained in:
Wim Taymans 2020-03-02 15:17:40 +01:00
parent cfa0e7da0b
commit ce80e05b25

View file

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