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:
Wim Taymans 2022-08-09 20:38:06 +02:00
parent 32cf5f312b
commit 0ad7cb3298

View file

@ -350,6 +350,7 @@ static void loop_leave(void *object)
if (--impl->enter_count == 0) {
impl->thread = 0;
flush_items(impl);
impl->polling = false;
}
}