From 7c6d1f30fff607549c0126093a693c7de99a5cd7 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Wed, 13 Feb 2013 01:26:52 +0000 Subject: [PATCH] Fix GTK ConnMgr update after stopping daemon and reduce wait time --- deluge/ui/gtkui/connectionmanager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/ui/gtkui/connectionmanager.py b/deluge/ui/gtkui/connectionmanager.py index 154b7d594..71aab09fe 100644 --- a/deluge/ui/gtkui/connectionmanager.py +++ b/deluge/ui/gtkui/connectionmanager.py @@ -555,7 +555,7 @@ that you forgot to install the deluged package or it's not in your PATH.")).run( # Call the shutdown method on the daemon def on_daemon_shutdown(d): # Update display to show change - self.__update_list() + reactor.callLater(0.8, self.__update_list) if client.connected() and client.connection_info() == (host, port, user): client.daemon.shutdown().addCallback(on_daemon_shutdown) else: @@ -569,7 +569,7 @@ that you forgot to install the deluged package or it's not in your PATH.")).run( elif status == "Offline": self.start_daemon(port, deluge.configmanager.get_config_dir()) - reactor.callLater(2.0, self.__update_list) + reactor.callLater(0.8, self.__update_list) def on_button_refresh_clicked(self, widget): self.__update_list()