[Modify] Remove it
This commit is contained in:
parent
8c50ea9bbd
commit
fb2f4e1d79
@ -380,24 +380,6 @@ namespace WebSocketSharp.Server
|
||||
return _hosts.TryGetValue (path, out host);
|
||||
}
|
||||
|
||||
internal bool Remove (string path)
|
||||
{
|
||||
path = HttpUtility.UrlDecode (path).TrimSlashFromEnd ();
|
||||
|
||||
WebSocketServiceHost host;
|
||||
lock (_sync) {
|
||||
if (!_hosts.TryGetValue (path, out host))
|
||||
return false;
|
||||
|
||||
_hosts.Remove (path);
|
||||
}
|
||||
|
||||
if (host.State == ServerState.Start)
|
||||
host.Stop (1001, String.Empty);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
internal void Start ()
|
||||
{
|
||||
lock (_sync) {
|
||||
|
Loading…
Reference in New Issue
Block a user