Module: deluge Branch: 1.2-stable Commit: 72fd3bd061a968b354896e323136435a7f5feeb1
Author: John Garland <[email protected]> Date: Sun May 2 22:23:49 2010 +1000 Fix deluge-gtk hanging on shutdown (thanks Jan Steffens) --- deluge/ui/gtkui/gtkui.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/ui/gtkui/gtkui.py b/deluge/ui/gtkui/gtkui.py index 255622a..4856986 100644 --- a/deluge/ui/gtkui/gtkui.py +++ b/deluge/ui/gtkui/gtkui.py @@ -167,7 +167,7 @@ class GtkUI(object): self.gnome_prog = gnome.init("Deluge", deluge.common.get_version()) self.gnome_client = gnome.ui.master_client() def on_die(*args): - gtk.main_quit() + reactor.stop() self.gnome_client.connect("die", on_die) log.debug("GNOME session 'die' handler registered!") except Exception, e: @@ -180,7 +180,7 @@ class GtkUI(object): def win_handler(ctrl_type): log.debug("ctrl_type: %s", ctrl_type) if ctrl_type in (CTRL_CLOSE_EVENT, CTRL_SHUTDOWN_EVENT): - gtk.main_quit() + reactor.stop() return 1 SetConsoleCtrlHandler(win_handler) -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
