mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-03 17:36:59 +01:00
Prevent NRE on NBxplorer listener
This commit is contained in:
parent
2b9f390c64
commit
b915544798
1 changed files with 7 additions and 4 deletions
|
@ -384,6 +384,8 @@ namespace BTCPayServer.Payments.Bitcoin
|
|||
return invoice;
|
||||
}
|
||||
public async Task StopAsync(CancellationToken cancellationToken)
|
||||
{
|
||||
if (_Cts != null)
|
||||
{
|
||||
leases.Dispose();
|
||||
_Cts.Cancel();
|
||||
|
@ -391,4 +393,5 @@ namespace BTCPayServer.Payments.Bitcoin
|
|||
Logs.PayServer.LogInformation($"{this.GetType().Name} successfully exited...");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue