[geary/mjog/misc-fixes] Don't block application shutdown check when mainloop is blocked
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/mjog/misc-fixes] Don't block application shutdown check when mainloop is blocked
- Date: Thu, 5 Dec 2019 01:57:15 +0000 (UTC)
commit 992bfe8fde3d702ec0fb5b6db127a36b25400a27
Author: Michael Gratton <mike vee net>
Date: Wed Dec 4 09:46:30 2019 +0800
Don't block application shutdown check when mainloop is blocked
src/client/application/application-client.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/client/application/application-client.vala b/src/client/application/application-client.vala
index 4b573c44..8e35ad3a 100644
--- a/src/client/application/application-client.vala
+++ b/src/client/application/application-client.vala
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]