diff options
| author | dkanada <dkanada@users.noreply.github.com> | 2020-11-18 13:46:13 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-18 13:46:13 +0900 |
| commit | 742966573d448ce48715245c083b845ec6df3f58 (patch) | |
| tree | bbb004dacbd65d8504d84d232a94ec0e3745a3f2 /MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs | |
| parent | a8524be6be3ff7c527d31cbe3c4e0edc7ffa9d56 (diff) | |
| parent | 4b1c9dc9eaa120a30a7820257a83dd5aa3ecd9f4 (diff) | |
Merge pull request #4503 from jellyfin/cancellation
Pass cancellation where possible
Diffstat (limited to 'MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs')
| -rw-r--r-- | MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs b/MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs index 8b3c6b2e6..b61b8a0e0 100644 --- a/MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs +++ b/MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs @@ -760,7 +760,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles using var response = await _httpClientFactory.CreateClient(NamedClient.Default) .GetAsync(new Uri(path), cancellationToken) .ConfigureAwait(false); - return await response.Content.ReadAsStreamAsync().ConfigureAwait(false); + return await response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); } case MediaProtocol.File: |
