We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5caa232 commit 80ce9caCopy full SHA for 80ce9ca
src/WinService/Services/ShutdownService.cs
@@ -52,8 +52,11 @@ private async Task CheckLifeSign(CancellationToken stoppingToken)
52
53
private async Task StartShutdownLoop(CancellationToken stoppingToken)
54
{
55
- await Task.Delay(TimeSpan.FromMinutes(5), stoppingToken);
56
- if (await WaitUntilShutdownAsync(stoppingToken)) await SendShutdownAsync();
+ await Task.Delay(TimeSpan.FromMinutes(5), stoppingToken);
+ while (await WaitUntilShutdownAsync(stoppingToken))
57
+ {
58
+ await SendShutdownAsync();
59
+ }
60
}
61
62
/// <summary>
0 commit comments