mirror of
https://github.com/bitwarden/server.git
synced 2025-02-22 02:51:33 +01:00
HeartbeatHostedService use cancel token (#2654)
This commit is contained in:
parent
8ba806667c
commit
54353f8b6c
@ -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.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user