[Modify] Replace it
This commit is contained in:
parent
1512e15c0a
commit
38d88e0ff8
@ -2520,13 +2520,7 @@ namespace WebSocketSharp
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (code == (ushort) CloseStatusCode.NoStatus) {
|
closeAsync (code, reason);
|
||||||
closeAsync (new CloseEventArgs (), true, true, false);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var send = !code.IsReserved ();
|
|
||||||
closeAsync (new CloseEventArgs (code, reason), send, send, false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user