diff options
author | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2020-01-15 15:05:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-15 15:05:17 +0300 |
commit | 9a3c6463298b9e26a77b646ecae33f415bec19a2 (patch) | |
tree | baa670a0efc9eb115436a4512cb9f544e2e1c463 | |
parent | bfc78da3b0cd23288c809aaa522bf4ca3bd48886 (diff) |
Add .Ignore() to process wrapper tasks (#9491)
To log errors in case the readers throw
-rw-r--r-- | main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessWrapper.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessWrapper.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessWrapper.cs index f6d15c43bf..635c056507 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessWrapper.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessWrapper.cs @@ -44,11 +44,11 @@ namespace MonoDevelop.Core.Execution // We need these wrappers, as the alternatives are not good enough. // OutputDataReceived does not persist newlines. if (OutputStreamChanged != null) { - Task.Run (CaptureOutput, cs.Token); + Task.Run (CaptureOutput, cs.Token).Ignore (); } if (ErrorStreamChanged != null) { - Task.Run (CaptureError, cs.Token); + Task.Run (CaptureError, cs.Token).Ignore (); } operation = new ProcessAsyncOperation (Task, cs) { |