Don't block application shutdown check when mainloop is blocked

This commit is contained in:
Michael Gratton 2019-12-04 09:46:30 +08:00
parent 2590e0090e
commit 992bfe8fde

View file

@ -756,7 +756,7 @@ public class Application.Client : Gtk.Application {
// shut the whole thing down if destroy_controller() takes too
// long to complete
int64 start_usec = get_monotonic_time();
while (!controller_closed) {
while (!controller_closed && Gtk.events_pending()) {
Gtk.main_iteration();
int64 delta_usec = get_monotonic_time() - start_usec;