mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Fix issue where stoping a daemon that you aren't connected to causes the gtkui to shutdown the
currently connected daemon.
This commit is contained in:
parent
a8697114c1
commit
5b94861fc9
1 changed files with 1 additions and 1 deletions
|
@ -526,7 +526,7 @@ class ConnectionManager(component.Component):
|
||||||
def on_daemon_shutdown(d):
|
def on_daemon_shutdown(d):
|
||||||
# Update display to show change
|
# Update display to show change
|
||||||
self.__update_list()
|
self.__update_list()
|
||||||
if client.connected():
|
if client.connected() and client.connection_info() == (host, port, user):
|
||||||
client.daemon.shutdown().addCallback(on_daemon_shutdown)
|
client.daemon.shutdown().addCallback(on_daemon_shutdown)
|
||||||
else:
|
else:
|
||||||
# Create a new client instance
|
# Create a new client instance
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue