[Modify] Polish it
This commit is contained in:
parent
3ac538dde4
commit
7d234b5ab8
@ -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 ();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user