aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/LiveTv
diff options
context:
space:
mode:
authorAbdulmohsen <ArabCoders@users.noreply.github.com>2023-11-24 00:00:53 +0300
committerGitHub <noreply@github.com>2023-11-24 00:00:53 +0300
commit9d5dc4d71b6f542d4adb60a6287a86f558c1dcc2 (patch)
treeb646b8209bd90df22c4a2a2df612f09b3be2c170 /Emby.Server.Implementations/LiveTv
parent324c86e14d9d76670b4e3439c2ed5fcbbfb9f8ff (diff)
parent3d4d33bcbac07be40c132cf3a3c39630ace7b444 (diff)
Merge branch 'jellyfin:master' into master
Diffstat (limited to 'Emby.Server.Implementations/LiveTv')
-rw-r--r--Emby.Server.Implementations/LiveTv/TunerHosts/LiveStream.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/Emby.Server.Implementations/LiveTv/TunerHosts/LiveStream.cs b/Emby.Server.Implementations/LiveTv/TunerHosts/LiveStream.cs
index 3ae9e256b..767b94136 100644
--- a/Emby.Server.Implementations/LiveTv/TunerHosts/LiveStream.cs
+++ b/Emby.Server.Implementations/LiveTv/TunerHosts/LiveStream.cs
@@ -84,15 +84,13 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts
return Task.CompletedTask;
}
- public Task Close()
+ public async Task Close()
{
EnableStreamSharing = false;
Logger.LogInformation("Closing {Type}", GetType().Name);
- LiveStreamCancellationTokenSource.Cancel();
-
- return Task.CompletedTask;
+ await LiveStreamCancellationTokenSource.CancelAsync().ConfigureAwait(false);
}
public Stream GetStream()