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 /Emby.Server.Implementations/Net | |
| parent | da4943754914a625efabbdbb08f3cfb6b0e2b770 (diff) | |
| parent | 832da133d820a5886904e7ea6480dfa029d6f5e8 (diff) | |
Merge pull request #7236 from Bond-009/taskcompletionsource
Diffstat (limited to 'Emby.Server.Implementations/Net')
| -rw-r--r-- | Emby.Server.Implementations/Net/UdpSocket.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Net/UdpSocket.cs b/Emby.Server.Implementations/Net/UdpSocket.cs index 0c451ccb60..bbbca4fc08 100644 --- a/Emby.Server.Implementations/Net/UdpSocket.cs +++ b/Emby.Server.Implementations/Net/UdpSocket.cs @@ -159,7 +159,7 @@ namespace Emby.Server.Implementations.Net { ThrowIfDisposed(); - var taskCompletion = new TaskCompletionSource<SocketReceiveResult>(); + var taskCompletion = new TaskCompletionSource<SocketReceiveResult>(TaskCreationOptions.RunContinuationsAsynchronously); bool isResultSet = false; Action<IAsyncResult> callback = callbackResult => @@ -195,7 +195,7 @@ namespace Emby.Server.Implementations.Net { ThrowIfDisposed(); - var taskCompletion = new TaskCompletionSource<int>(); + var taskCompletion = new TaskCompletionSource<int>(TaskCreationOptions.RunContinuationsAsynchronously); bool isResultSet = false; Action<IAsyncResult> callback = callbackResult => |
