http: output a Task on Websocket.Close
This commit is contained in:
parent
de1f3f756a
commit
210c8de1ed
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
var pool = ArrayPool<byte>.Shared;
|
||||||
byte[] closeBuf = pool.Rent(2);
|
byte[] closeBuf = pool.Rent(2);
|
||||||
|
|
Loading…
Reference in a new issue