From 5b94861fc9918614dc1a6c53ca26bfb71a57b825 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Mon, 14 Dec 2009 00:48:18 +0000 Subject: [PATCH] Fix issue where stoping a daemon that you aren't connected to causes the gtkui to shutdown the currently connected daemon. --- deluge/ui/gtkui/connectionmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/gtkui/connectionmanager.py b/deluge/ui/gtkui/connectionmanager.py index 24108b895..fa963fdac 100644 --- a/deluge/ui/gtkui/connectionmanager.py +++ b/deluge/ui/gtkui/connectionmanager.py @@ -526,7 +526,7 @@ class ConnectionManager(component.Component): def on_daemon_shutdown(d): # Update display to show change self.__update_list() - if client.connected(): + if client.connected() and client.connection_info() == (host, port, user): client.daemon.shutdown().addCallback(on_daemon_shutdown) else: # Create a new client instance