mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Fix spurious crash at shutdown
This commit is contained in:
@@ -106,9 +106,11 @@ namespace BTCPayServer
|
||||
{
|
||||
}
|
||||
}
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
lock (_Queues)
|
||||
{
|
||||
if (_Queues.Count is 0)
|
||||
return;
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
Cleanup();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user