[Modify] Polish it

This commit is contained in:
sta 2020-11-03 19:41:57 +09:00
parent a82345b72d
commit bfa211ba1f

View File

@ -461,10 +461,13 @@ namespace WebSocketSharp.Net
private void removeConnection ()
{
if (_lastListener != null)
_lastListener.RemoveConnection (this);
else
if (_lastListener == null) {
_listener.RemoveConnection (this);
return;
}
_lastListener.RemoveConnection (this);
}
private void unregisterContext ()