[Modify] Remove it

This commit is contained in:
sta 2017-06-07 15:08:48 +09:00
parent 8c50ea9bbd
commit fb2f4e1d79

View File

@ -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) {