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