From 837322478b3de381b5026cbd4d7ccd7b8d8a77ad Mon Sep 17 00:00:00 2001 From: Nick Date: Thu, 17 Feb 2011 15:30:14 +0100 Subject: [PATCH] return deferred for proper command line behavior --- deluge/ui/console/commands/cache.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deluge/ui/console/commands/cache.py b/deluge/ui/console/commands/cache.py index eee7e049f..92c016d9f 100644 --- a/deluge/ui/console/commands/cache.py +++ b/deluge/ui/console/commands/cache.py @@ -47,4 +47,6 @@ class Command(BaseCommand): for key, value in status.items(): self.console.write("{!info!}%s: {!input!}%s" % (key, value)) - client.core.get_cache_status().addCallback(on_cache_status) + d = client.core.get_cache_status() + d.addCallback(on_cache_status) + return d