aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasily <just.one.man@yandex.ru>2019-10-27 16:48:42 +0300
committerVasily <just.one.man@yandex.ru>2019-10-27 16:48:42 +0300
commit8cf8c36708ae57257810c77120828285a22d2799 (patch)
treeb0005c2399d7b1591abb9bd5b2cdf549d34e28ac
parentdd7ae7747e770ef4545fbe6aeb5b1ab327a3550a (diff)
Move throwing if cancelled after logging that fact
-rw-r--r--MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs b/MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs
index 9654af463..9ecb5fe8c 100644
--- a/MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs
+++ b/MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs
@@ -508,7 +508,6 @@ namespace MediaBrowser.Api.Playback.Hls
await Task.Delay(100, cancellationToken).ConfigureAwait(false);
}
- cancellationToken.ThrowIfCancellationRequested();
if (!File.Exists(segmentPath))
{
Logger.LogWarning("cannot serve {0} as transcoding quit before we got there", segmentPath);
@@ -517,6 +516,7 @@ namespace MediaBrowser.Api.Playback.Hls
{
Logger.LogDebug("serving {0} as it's on disk and transcoding stopped", segmentPath);
}
+ cancellationToken.ThrowIfCancellationRequested();
}
else
{