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