[smuxi/stable] Frontend: execute /exec output in the same thread



commit 82d5f254c3a2e96fd251f0da6250c27ebaa727e5
Author: Mirco Bauer <meebey meebey net>
Date:   Thu Jan 2 23:15:20 2014 +0100

    Frontend: execute /exec output in the same thread
    
    We can't use the TaskQueue thread via Execute() as Execute() of /exec itself
    already blocks the queue as long as the /exec process does not terminate.
    This prevented /exec -o tail -f foo to work.

 src/Frontend/CommandManager.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/Frontend/CommandManager.cs b/src/Frontend/CommandManager.cs
index 84644c4..369cc35 100644
--- a/src/Frontend/CommandManager.cs
+++ b/src/Frontend/CommandManager.cs
@@ -231,9 +231,9 @@ namespace Smuxi.Frontend
                         output = String.Format("{0}{1}",
                                                cmd.CommandCharacter, output);
                     }
-                    Execute(new CommandModel(cmd.FrontendManager,
-                                             cmd.Chat,
-                                             cmd.CommandCharacter, output));
+                    DoExecute(new CommandModel(cmd.FrontendManager,
+                                               cmd.Chat,
+                                               cmd.CommandCharacter, output));
                 } else {
                     var msg = new MessageBuilder().AppendText(output).ToMessage();
                     f_Session.AddMessageToFrontend(cmd, msg);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]