diff options
| author | Cody Robibero <cody@robibe.ro> | 2022-01-22 15:46:19 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-22 15:46:19 -0700 |
| commit | 3c746f27435a35911635c0ed1382305a1a636c6a (patch) | |
| tree | 53e7d09d948c12cc1d6062c1abeede4de07f2964 /MediaBrowser.Common/Extensions/ProcessExtensions.cs | |
| parent | da4943754914a625efabbdbb08f3cfb6b0e2b770 (diff) | |
| parent | 832da133d820a5886904e7ea6480dfa029d6f5e8 (diff) | |
Merge pull request #7236 from Bond-009/taskcompletionsource
Diffstat (limited to 'MediaBrowser.Common/Extensions/ProcessExtensions.cs')
| -rw-r--r-- | MediaBrowser.Common/Extensions/ProcessExtensions.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Common/Extensions/ProcessExtensions.cs b/MediaBrowser.Common/Extensions/ProcessExtensions.cs index 08e01bfd6..c3a7cb394 100644 --- a/MediaBrowser.Common/Extensions/ProcessExtensions.cs +++ b/MediaBrowser.Common/Extensions/ProcessExtensions.cs @@ -39,7 +39,7 @@ namespace MediaBrowser.Common.Extensions } // Add an event handler for the process exit event - var tcs = new TaskCompletionSource<bool>(); + var tcs = new TaskCompletionSource<bool>(TaskCreationOptions.RunContinuationsAsynchronously); process.Exited += (_, _) => tcs.TrySetResult(true); // Return immediately if the process has already exited |
