mirror of
https://github.com/bitwarden/server.git
synced 2025-07-03 00:52:49 -05:00
HeartbeatHostedService use cancel token (#2654)
This commit is contained in:
@ -49,7 +49,7 @@ public class HeartbeatHostedService : IHostedService, IDisposable
|
||||
while (!cancellationToken.IsCancellationRequested)
|
||||
{
|
||||
await _hubContext.Clients.All.SendAsync("Heartbeat");
|
||||
await Task.Delay(120000);
|
||||
await Task.Delay(120000, cancellationToken);
|
||||
}
|
||||
_logger.LogWarning("Done with heartbeat.");
|
||||
}
|
||||
|
Reference in New Issue
Block a user