[smuxi/stable] Engine: fixed reading more than a single command from hooks
- From: Mirco M. M. Bauer <mmmbauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [smuxi/stable] Engine: fixed reading more than a single command from hooks
- Date: Sun, 12 Jan 2014 07:24:21 +0000 (UTC)
commit d9d5c025cb51b6c15a888b8ba801e33bf46d039a
Author: Mirco Bauer <meebey meebey net>
Date: Fri Jan 3 20:05:03 2014 +0100
Engine: fixed reading more than a single command from hooks
src/Engine/Hooks/HookRunner.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Engine/Hooks/HookRunner.cs b/src/Engine/Hooks/HookRunner.cs
index 9a3e283..d661008 100644
--- a/src/Engine/Hooks/HookRunner.cs
+++ b/src/Engine/Hooks/HookRunner.cs
@@ -153,7 +153,7 @@ namespace Smuxi.Engine
Logger.Debug("Run(): executing " + hookPath);
#endif
var process = SysDiag.Process.Start(startInfo);
- while (!process.HasExited) {
+ while (!process.StandardOutput.EndOfStream) {
var line = process.StandardOutput.ReadLine();
if (String.IsNullOrEmpty(line)) {
continue;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]