Changeset 4420f2f


Ignore:
Timestamp:
01/19/2010 11:00:48 PM (15 years ago)
Author:
Andrew Resch <andrewresch@gmail.com>
Branches:
2.0.x, develop, extjs4-port, master
Children:
a82b6e
Parents:
f8f9438
Message:

Fix hanging when using commands from the command-line
Fix displaying plugin command output on the command-line

Location:
deluge/ui/console
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • deluge/ui/console/commands/plugin.py

    rf8f9438 r4420f2f  
    7070                    self.console.write("{!input!}  " + p)
    7171
    72             client.core.get_available_plugins().addCallback(on_available_plugins)
     72            return client.core.get_available_plugins().addCallback(on_available_plugins)
    7373
    7474        if options["show"]:
     
    7878                    self.console.write("{!input!}  " + p)
    7979
    80             client.core.get_enabled_plugins().addCallback(on_enabled_plugins)
     80            return client.core.get_enabled_plugins().addCallback(on_enabled_plugins)
    8181
    8282        if options["enable"]:
     
    9191                        client.core.enable_plugin(plugins[arg.lower()])
    9292
    93             client.core.get_available_plugins().addCallback(on_available_plugins)
     93            return client.core.get_available_plugins().addCallback(on_available_plugins)
    9494
    9595        if options["disable"]:
     
    104104                        client.core.disable_plugin(plugins[arg.lower()])
    105105
    106             client.core.get_enabled_plugins().addCallback(on_enabled_plugins)
     106            return client.core.get_enabled_plugins().addCallback(on_enabled_plugins)
  • deluge/ui/console/main.py

    rf8f9438 r4420f2f  
    171171                    # allow multiple commands split by ";"
    172172                    for arg in args.split(";"):
    173                         deferreds.append(self.do_command(arg.strip()))
     173                        deferreds.append(defer.maybeDeferred(self.do_command, arg.strip()))
    174174
    175175                    def on_complete(result):
Note: See TracChangeset for help on using the changeset viewer.