[Modify] Polish it
This commit is contained in:
parent
4aa68d2627
commit
f58b099f16
@ -272,12 +272,19 @@ namespace WebSocketSharp.Net
|
||||
public bool Remove (string uriPrefix)
|
||||
{
|
||||
_listener.CheckDisposed ();
|
||||
|
||||
if (uriPrefix == null)
|
||||
throw new ArgumentNullException ("uriPrefix");
|
||||
|
||||
var ret = _prefixes.Remove (uriPrefix);
|
||||
if (ret && _listener.IsListening)
|
||||
EndPointManager.RemovePrefix (uriPrefix, _listener);
|
||||
|
||||
if (!ret)
|
||||
return ret;
|
||||
|
||||
if (!_listener.IsListening)
|
||||
return ret;
|
||||
|
||||
EndPointManager.RemovePrefix (uriPrefix, _listener);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user