[Modify] Polish it

This commit is contained in:
sta 2021-10-21 20:23:22 +09:00
parent 3ac538dde4
commit 7d234b5ab8

View File

@ -444,12 +444,15 @@ namespace WebSocketSharp.Server
private void onOpen (object sender, EventArgs e)
{
_id = _sessions.Add (this);
if (_id == null) {
_websocket.Close (CloseStatusCode.Away);
return;
}
_startTime = DateTime.Now;
OnOpen ();
}