mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 03:24:54 +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
f59901c1be
commit
eeac8efcf2
2 changed files with 3 additions and 1 deletions
|
@ -26,6 +26,8 @@
|
|||
* Fix #1036 autoconnecting to localhost daemon on start-up
|
||||
* Fix issue where hosts will show up erroneously as Offline
|
||||
* Add #891 remove torrents by pressing the Delete key
|
||||
* Fix issue where stoping a daemon that you aren't connected to causes the
|
||||
gtkui to shutdown the currently connected daemon.
|
||||
|
||||
==== Console ====
|
||||
* Fix using the console in Windows, but only in command-line mode
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue