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);