mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-20 13:34:37 +01:00
Fix spurious crash at shutdown
This commit is contained in:
parent
2c3b8d8925
commit
f30ddbf175
1 changed files with 3 additions and 1 deletions
|
@ -106,9 +106,11 @@ namespace BTCPayServer
|
|||
{
|
||||
}
|
||||
}
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
lock (_Queues)
|
||||
{
|
||||
if (_Queues.Count is 0)
|
||||
return;
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
Cleanup();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue