aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/LiveTv/TunerHosts/SharedHttpStream.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2022-01-22 17:06:57 +0100
committerBond_009 <bond.009@outlook.com>2022-01-22 17:06:57 +0100
commit832da133d820a5886904e7ea6480dfa029d6f5e8 (patch)
treee142edf37e89df5e8b27c6358c868e0d598df6d0 /Emby.Server.Implementations/LiveTv/TunerHosts/SharedHttpStream.cs
parentcd675475bc5f37d4b20ed71271b17d0945b3f969 (diff)
Always create TaskCompletionSource<T> with TaskCreationOptions.RunContinuationsAsynchronously
Diffstat (limited to 'Emby.Server.Implementations/LiveTv/TunerHosts/SharedHttpStream.cs')
-rw-r--r--Emby.Server.Implementations/LiveTv/TunerHosts/SharedHttpStream.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/LiveTv/TunerHosts/SharedHttpStream.cs b/Emby.Server.Implementations/LiveTv/TunerHosts/SharedHttpStream.cs
index ab4beb15b..e84e1e074 100644
--- a/Emby.Server.Implementations/LiveTv/TunerHosts/SharedHttpStream.cs
+++ b/Emby.Server.Implementations/LiveTv/TunerHosts/SharedHttpStream.cs
@@ -73,7 +73,7 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts
SetTempFilePath("ts");
- var taskCompletionSource = new TaskCompletionSource<bool>();
+ var taskCompletionSource = new TaskCompletionSource<bool>(TaskCreationOptions.RunContinuationsAsynchronously);
_ = StartStreaming(response, taskCompletionSource, LiveStreamCancellationTokenSource.Token);