[Modify] Polish it
This commit is contained in:
parent
6c3706602c
commit
2ba4ff2b8e
@ -214,10 +214,9 @@ namespace WebSocketSharp.Net
|
|||||||
if (!_endpoints.TryGetValue (endpoint, out lsnr))
|
if (!_endpoints.TryGetValue (endpoint, out lsnr))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
_endpoints.Remove (endpoint);
|
|
||||||
lsnr.Close ();
|
lsnr.Close ();
|
||||||
|
|
||||||
return true;
|
return _endpoints.Remove (endpoint);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user