Properly forward cancellationTokens

This commit is contained in:
Bond_009
2021-02-15 14:19:08 +01:00
parent 30372fcd68
commit e9f22303a4
10 changed files with 69 additions and 27 deletions

View File

@@ -777,7 +777,7 @@ namespace Emby.Dlna.PlayTo
var currentWait = 0;
while (_device.TransportState != TransportState.Playing && currentWait < MaxWait)
{
await Task.Delay(Interval).ConfigureAwait(false);
await Task.Delay(Interval, cancellationToken).ConfigureAwait(false);
currentWait += Interval;
}