This commit is contained in:
JustArchi
2020-11-11 21:16:51 +01:00
parent 102ed7282a
commit cc923523be

View File

@@ -230,7 +230,7 @@ namespace ArchiSteamFarm.NLog {
throw new ArgumentOutOfRangeException(nameof(secondsDelay));
}
while (true) {
while (!cancellationToken.IsCancellationRequested) {
try {
await Task.Delay(secondsDelay * 1000, cancellationToken).ConfigureAwait(false);
} catch (TaskCanceledException) {