From 210c8de1ed4020e30a2f43950efc91255d3bf873 Mon Sep 17 00:00:00 2001 From: uwaa Date: Mon, 2 Dec 2024 16:18:14 +0000 Subject: [PATCH] http: output a Task on Websocket.Close --- HTTP/Websockets/Websocket.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HTTP/Websockets/Websocket.cs b/HTTP/Websockets/Websocket.cs index b54db43..b08f855 100644 --- a/HTTP/Websockets/Websocket.cs +++ b/HTTP/Websockets/Websocket.cs @@ -250,7 +250,7 @@ public class Websocket } } - internal async void Close(CloseStatus status = CloseStatus.NormalClosure) + internal async Task Close(CloseStatus status = CloseStatus.NormalClosure) { var pool = ArrayPool.Shared; byte[] closeBuf = pool.Rent(2);