Changeset 368613


Ignore:
Timestamp:
01/19/2010 11:00:48 PM (15 years ago)
Author:
Andrew Resch <andrewresch@gmail.com>
Children:
445096
Parents:
4af387
Message:

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

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r4af387 r368613  
    22==== GtkUI ====
    33        * Fix #1128 Show an error dialog when unable to start a 'deluged' process
    4        
     4
     5==== Console ====
     6        * Fix hanging when using commands from the command-line
     7
    58=== Deluge 1.2.0 - "Bursting like an infected kidney" (10 January 2010) ===
    69==== Core ====
  • deluge/ui/console/commands/plugin.py

    r4af387 r368613  
    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

    r4af387 r368613  
    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.