[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))
|
||||
return false;
|
||||
|
||||
_endpoints.Remove (endpoint);
|
||||
lsnr.Close ();
|
||||
|
||||
return true;
|
||||
return _endpoints.Remove (endpoint);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user