Refactored a few for HttpConnection.cs
This commit is contained in:
parent
1692f87d07
commit
4fbcd862f3
@ -395,12 +395,10 @@ namespace WebSocketSharp.Net
|
|||||||
|
|
||||||
private void removeConnection ()
|
private void removeConnection ()
|
||||||
{
|
{
|
||||||
if (_lastListener == null) {
|
if (_lastListener != null)
|
||||||
_listener.RemoveConnection (this);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
_lastListener.RemoveConnection (this);
|
_lastListener.RemoveConnection (this);
|
||||||
|
else
|
||||||
|
_listener.RemoveConnection (this);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void unbind ()
|
private void unbind ()
|
||||||
|
Loading…
Reference in New Issue
Block a user