mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
loop: flush items before stopping
Before leaving the loop, flush out any pending items in the invoke queue. See #2631
This commit is contained in:
parent
32cf5f312b
commit
0ad7cb3298
1 changed files with 1 additions and 0 deletions
|
|
@ -350,6 +350,7 @@ static void loop_leave(void *object)
|
||||||
|
|
||||||
if (--impl->enter_count == 0) {
|
if (--impl->enter_count == 0) {
|
||||||
impl->thread = 0;
|
impl->thread = 0;
|
||||||
|
flush_items(impl);
|
||||||
impl->polling = false;
|
impl->polling = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue