mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Fix exception when using the 'halt' command
This commit is contained in:
parent
dbece6a6f6
commit
350c523e7d
2 changed files with 5 additions and 2 deletions
|
@ -19,6 +19,9 @@
|
||||||
* Fix setting the torrent options via the options tab
|
* Fix setting the torrent options via the options tab
|
||||||
* Fix the private flag in the options tab
|
* Fix the private flag in the options tab
|
||||||
|
|
||||||
|
==== Console ===
|
||||||
|
* Fix exception when using the 'halt' command
|
||||||
|
|
||||||
==== Misc ====
|
==== Misc ====
|
||||||
* Add man pages for deluge-console, deluge-gtk and deluge-web
|
* Add man pages for deluge-console, deluge-gtk and deluge-web
|
||||||
|
|
||||||
|
|
|
@ -44,9 +44,9 @@ class Command(BaseCommand):
|
||||||
self.console = component.get("ConsoleUI")
|
self.console = component.get("ConsoleUI")
|
||||||
|
|
||||||
def on_shutdown(result):
|
def on_shutdown(result):
|
||||||
self.write("{!success!}Daemon was shutdown")
|
self.console.write("{!success!}Daemon was shutdown")
|
||||||
|
|
||||||
def on_shutdown_fail(reason):
|
def on_shutdown_fail(reason):
|
||||||
self.write("{!error!}Unable to shutdown daemon: %s" % reason)
|
self.console.write("{!error!}Unable to shutdown daemon: %s" % reason)
|
||||||
|
|
||||||
return client.daemon.shutdown().addCallback(on_shutdown).addErrback(on_shutdown_fail)
|
return client.daemon.shutdown().addCallback(on_shutdown).addErrback(on_shutdown_fail)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue