[Modify] Polish it

master
sta 5 years ago
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…
Cancel
Save