aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/VideosController.cs
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2021-06-04 06:36:58 -0600
committerGitHub <noreply@github.com>2021-06-04 14:36:58 +0200
commit9154f20b3404fb818b8c2e74af038547d2c16c40 (patch)
tree207f80cdc19da9918185c424d57a2272a65cfa09 /Jellyfin.Api/Controllers/VideosController.cs
parentb060d9d0f1b3dac523288a3aaf182f7e35cf875c (diff)
Don't dispose managed CancellationTokenSource (#6139)
Diffstat (limited to 'Jellyfin.Api/Controllers/VideosController.cs')
-rw-r--r--Jellyfin.Api/Controllers/VideosController.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Jellyfin.Api/Controllers/VideosController.cs b/Jellyfin.Api/Controllers/VideosController.cs
index e544d001e..dc64a0f1b 100644
--- a/Jellyfin.Api/Controllers/VideosController.cs
+++ b/Jellyfin.Api/Controllers/VideosController.cs
@@ -373,6 +373,7 @@ namespace Jellyfin.Api.Controllers
[FromQuery] Dictionary<string, string> streamOptions)
{
var isHeadRequest = Request.Method == System.Net.WebRequestMethods.Http.Head;
+ // CTS lifecycle is managed internally.
var cancellationTokenSource = new CancellationTokenSource();
var streamingRequest = new VideoRequestDto
{