mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 14:07:22 +01:00
move check for cancellation of download token outside wait
This commit is contained in:
parent
21fd54e38d
commit
0824ba434b
1 changed files with 2 additions and 1 deletions
|
|
@ -396,9 +396,10 @@ public class CachedPlayer : MediatorSubscriberBase, IDisposable
|
|||
// block until current application is done
|
||||
_logger.LogDebug("Waiting for current data application (Id: {id}) to finish", _applicationId);
|
||||
await Task.Delay(250).ConfigureAwait(false);
|
||||
if (downloadToken.IsCancellationRequested) return;
|
||||
}
|
||||
|
||||
if (downloadToken.IsCancellationRequested) return;
|
||||
|
||||
_applicationTask = Task.Run(async () =>
|
||||
{
|
||||
_applicationId = Guid.NewGuid();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue