2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-26 21:13:13 +00:00
This commit is contained in:
2024-10-23 18:49:23 +03:00
parent dc8a2c0b46
commit 62343d7761
8 changed files with 187 additions and 20 deletions

View File

@ -227,7 +227,7 @@ namespace Esiur.Net.Sockets
private void NetworkReceive(Task<WebSocketReceiveResult> task)
{
if (sock.State == WebSocketState.Closed || sock.State == WebSocketState.Aborted)
if (sock.State == WebSocketState.Closed || sock.State == WebSocketState.Aborted || sock.State == WebSocketState.CloseReceived)
{
Receiver?.NetworkClose(this);
return;