mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-13 04:54:23 +00:00
Fix GTK ConnMgr update after stopping daemon and reduce wait time
This commit is contained in:
parent
8911600155
commit
7c6d1f30ff
@ -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
|
# Call the shutdown method on the daemon
|
||||||
def on_daemon_shutdown(d):
|
def on_daemon_shutdown(d):
|
||||||
# Update display to show change
|
# 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):
|
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:
|
||||||
@ -569,7 +569,7 @@ that you forgot to install the deluged package or it's not in your PATH.")).run(
|
|||||||
|
|
||||||
elif status == "Offline":
|
elif status == "Offline":
|
||||||
self.start_daemon(port, deluge.configmanager.get_config_dir())
|
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):
|
def on_button_refresh_clicked(self, widget):
|
||||||
self.__update_list()
|
self.__update_list()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user