mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 17:24:46 +03:00
Always create TaskCompletionSource<T> with TaskCreationOptions.RunContinuationsAsynchronously
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user