Refactored a few for HttpConnection.cs

This commit is contained in:
sta 2015-01-13 16:07:56 +09:00
parent 1692f87d07
commit 4fbcd862f3

View File

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