mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
catch cancled task exception in notif
This commit is contained in:
@@ -91,6 +91,10 @@ namespace BTCPayServer.Controllers
|
||||
await Task.Delay(2000, cancellationToken);
|
||||
}
|
||||
}
|
||||
catch(TaskCanceledException)
|
||||
{
|
||||
// ignored
|
||||
}
|
||||
finally
|
||||
{
|
||||
subscription?.Dispose();
|
||||
|
||||
Reference in New Issue
Block a user