http: output a Task on Websocket.Close

This commit is contained in:
uwaa 2024-12-02 16:18:14 +00:00
parent de1f3f756a
commit 210c8de1ed

View file

@ -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<byte>.Shared;
byte[] closeBuf = pool.Rent(2);