bump libraries

This commit is contained in:
nicolas.dorier
2020-01-12 15:32:26 +09:00
parent d5febb30e7
commit d3408b91be
20 changed files with 53 additions and 50 deletions

View File

@@ -126,9 +126,11 @@ namespace BTCPayServer
{
if (webSocket.State == WebSocketState.Open)
{
CancellationTokenSource cts = new CancellationTokenSource();
cts.CancelAfter(5000);
await webSocket.CloseAsync(WebSocketCloseStatus.NormalClosure, "Closing", cts.Token);
using (CancellationTokenSource cts = new CancellationTokenSource())
{
cts.CancelAfter(5000);
await webSocket.CloseAsync(WebSocketCloseStatus.NormalClosure, "Closing", cts.Token);
}
}
}
catch { }