event-loop: always do the post-dispatch check

The post-dispatch check on wl_event_loop_dispatch() was not being run
if epoll_wait returned 0 events, making the check unreliable.
This commit is contained in:
Ander Conselvan de Oliveira 2012-03-13 13:16:13 +02:00 committed by Kristian Høgsberg
parent d4ae9fb5f8
commit 3c5d9694db

View file

@ -462,8 +462,9 @@ wl_event_loop_dispatch(struct wl_event_loop *loop, int timeout)
n += source->interface->dispatch(source, &ep[i]);
}
while (n > 0)
do {
n = post_dispatch_check(loop);
} while (n > 0);
return 0;
}