Pass cancellation where possible

This commit is contained in:
Bond_009
2020-11-17 19:43:00 +01:00
parent 08c2c86bc7
commit 4b1c9dc9ea
20 changed files with 47 additions and 57 deletions

View File

@@ -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: