tsToken pass (#21202)

Pass the cancellation token so that it affects the delay process too
This commit is contained in:
Rose 2022-10-12 17:10:56 -04:00 committed by GitHub
parent 7bbefe9ee7
commit 1d25e552d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -270,7 +270,7 @@ namespace Microsoft.PowerToys.Settings.UI.Library.ViewModels
if (!readSuccessfully)
{
Task.Delay(500).Wait();
Task.Delay(500, ts.Token).Wait(ts.Token);
}
}
});