mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 03:54:50 +00:00
Fix exception when using the 'halt' command
This commit is contained in:
parent
c068384845
commit
9627b7cb92
1 changed files with 2 additions and 2 deletions
|
@ -44,9 +44,9 @@ class Command(BaseCommand):
|
|||
self.console = component.get("ConsoleUI")
|
||||
|
||||
def on_shutdown(result):
|
||||
self.write("{!success!}Daemon was shutdown")
|
||||
self.console.write("{!success!}Daemon was shutdown")
|
||||
|
||||
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue