Don't dispose managed CancellationTokenSource (#6139)

This commit is contained in:
Cody Robibero
2021-06-04 06:36:58 -06:00
committed by GitHub
parent b060d9d0f1
commit 9154f20b34
7 changed files with 36 additions and 4 deletions

View File

@@ -106,6 +106,7 @@ namespace Jellyfin.Api.Helpers
bool enableAdaptiveBitrateStreaming)
{
var isHeadRequest = _httpContextAccessor.HttpContext?.Request.Method == WebRequestMethods.Http.Head;
// CTS lifecycle is managed internally.
var cancellationTokenSource = new CancellationTokenSource();
return await GetMasterPlaylistInternal(
streamingRequest,