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