diff --git a/deluge/ui/gtkui/gtkui.py b/deluge/ui/gtkui/gtkui.py index ec3711a51..767c7049d 100644 --- a/deluge/ui/gtkui/gtkui.py +++ b/deluge/ui/gtkui/gtkui.py @@ -232,8 +232,9 @@ class GtkUI(object): component.stop() # Process any pending gtk events since the mainloop has been quit - while gtk.events_pending(): - reactor.doIteration(0) + if not deluge.common.windows_check(): + while gtk.events_pending(): + reactor.doIteration(0) # Shutdown all components component.shutdown()