diff --git a/ChangeLog b/ChangeLog index ccc9b5fb1..73af22f78 100644 --- a/ChangeLog +++ b/ChangeLog @@ -19,6 +19,9 @@ * Fix setting the torrent options via the options tab * Fix the private flag in the options tab +==== Console === + * Fix exception when using the 'halt' command + ==== Misc ==== * Add man pages for deluge-console, deluge-gtk and deluge-web diff --git a/deluge/ui/console/commands/halt.py b/deluge/ui/console/commands/halt.py index 5fb415cd2..0a4de27a9 100644 --- a/deluge/ui/console/commands/halt.py +++ b/deluge/ui/console/commands/halt.py @@ -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)