Move throwing if cancelled after logging that fact
This commit is contained in:
parent
dd7ae7747e
commit
8cf8c36708
|
@ -508,7 +508,6 @@ namespace MediaBrowser.Api.Playback.Hls
|
||||||
await Task.Delay(100, cancellationToken).ConfigureAwait(false);
|
await Task.Delay(100, cancellationToken).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
cancellationToken.ThrowIfCancellationRequested();
|
|
||||||
if (!File.Exists(segmentPath))
|
if (!File.Exists(segmentPath))
|
||||||
{
|
{
|
||||||
Logger.LogWarning("cannot serve {0} as transcoding quit before we got there", 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);
|
Logger.LogDebug("serving {0} as it's on disk and transcoding stopped", segmentPath);
|
||||||
}
|
}
|
||||||
|
cancellationToken.ThrowIfCancellationRequested();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user