aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Helpers/AudioHelper.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/Helpers/AudioHelper.cs
parentb060d9d0f1b3dac523288a3aaf182f7e35cf875c (diff)
Don't dispose managed CancellationTokenSource (#6139)
Diffstat (limited to 'Jellyfin.Api/Helpers/AudioHelper.cs')
-rw-r--r--Jellyfin.Api/Helpers/AudioHelper.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Jellyfin.Api/Helpers/AudioHelper.cs b/Jellyfin.Api/Helpers/AudioHelper.cs
index cf35ee23a..264131905 100644
--- a/Jellyfin.Api/Helpers/AudioHelper.cs
+++ b/Jellyfin.Api/Helpers/AudioHelper.cs
@@ -97,6 +97,8 @@ namespace Jellyfin.Api.Helpers
}
bool isHeadRequest = _httpContextAccessor.HttpContext.Request.Method == System.Net.WebRequestMethods.Http.Head;
+
+ // CTS lifecycle is managed internally.
var cancellationTokenSource = new CancellationTokenSource();
using var state = await StreamingHelpers.GetStreamingState(