mirror of
https://github.com/bitwarden/server
synced 2025-12-17 00:33:23 +00:00
stopping service log
This commit is contained in:
@@ -46,6 +46,7 @@ namespace Bit.EventsProcessor
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
_logger.LogWarning("Stopping service.");
|
||||||
_cts.Cancel();
|
_cts.Cancel();
|
||||||
await Task.WhenAny(_executingTask, Task.Delay(-1, cancellationToken));
|
await Task.WhenAny(_executingTask, Task.Delay(-1, cancellationToken));
|
||||||
cancellationToken.ThrowIfCancellationRequested();
|
cancellationToken.ThrowIfCancellationRequested();
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ namespace Bit.Notifications
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
_logger.LogWarning("Stopping service.");
|
||||||
_cts.Cancel();
|
_cts.Cancel();
|
||||||
await Task.WhenAny(_executingTask, Task.Delay(-1, cancellationToken));
|
await Task.WhenAny(_executingTask, Task.Delay(-1, cancellationToken));
|
||||||
cancellationToken.ThrowIfCancellationRequested();
|
cancellationToken.ThrowIfCancellationRequested();
|
||||||
|
|||||||
Reference in New Issue
Block a user