[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)
|
private void onOpen (object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
_id = _sessions.Add (this);
|
_id = _sessions.Add (this);
|
||||||
|
|
||||||
if (_id == null) {
|
if (_id == null) {
|
||||||
_websocket.Close (CloseStatusCode.Away);
|
_websocket.Close (CloseStatusCode.Away);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_startTime = DateTime.Now;
|
_startTime = DateTime.Now;
|
||||||
|
|
||||||
OnOpen ();
|
OnOpen ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user