Module: deluge Branch: master Commit: 837322478b3de381b5026cbd4d7ccd7b8d8a77ad
Author: Nick <[email protected]> Date: Thu Feb 17 15:30:14 2011 +0100 return deferred for proper command line behavior --- deluge/ui/console/commands/cache.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/deluge/ui/console/commands/cache.py b/deluge/ui/console/commands/cache.py index eee7e04..92c016d 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 -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
