|
|
|
@ -395,19 +395,22 @@ namespace WebSocketSharp.Net
|
|
|
|
|
|
|
|
|
|
|
|
private void removeConnection ()
|
|
|
|
private void removeConnection ()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (_lastListener == null)
|
|
|
|
if (_lastListener == null) {
|
|
|
|
_listener.RemoveConnection (this);
|
|
|
|
_listener.RemoveConnection (this);
|
|
|
|
else
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
_lastListener.RemoveConnection (this);
|
|
|
|
_lastListener.RemoveConnection (this);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void unbind ()
|
|
|
|
private void unbind ()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (_contextWasBound) {
|
|
|
|
if (!_contextWasBound)
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
_listener.UnbindContext (_context);
|
|
|
|
_listener.UnbindContext (_context);
|
|
|
|
_contextWasBound = false;
|
|
|
|
_contextWasBound = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|