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

@@ -265,6 +265,7 @@ namespace Jellyfin.Api.Controllers
EnableSubtitlesInManifest = enableSubtitlesInManifest ?? true
};
// CTS lifecycle is managed internally.
var cancellationTokenSource = new CancellationTokenSource();
using var state = await StreamingHelpers.GetStreamingState(
streamingRequest,