[Modify] Polish it
This commit is contained in:
parent
a82345b72d
commit
bfa211ba1f
@ -461,10 +461,13 @@ namespace WebSocketSharp.Net
|
|||||||
|
|
||||||
private void removeConnection ()
|
private void removeConnection ()
|
||||||
{
|
{
|
||||||
if (_lastListener != null)
|
if (_lastListener == null) {
|
||||||
_lastListener.RemoveConnection (this);
|
|
||||||
else
|
|
||||||
_listener.RemoveConnection (this);
|
_listener.RemoveConnection (this);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
_lastListener.RemoveConnection (this);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void unregisterContext ()
|
private void unregisterContext ()
|
||||||
|
Loading…
Reference in New Issue
Block a user