[Modify] Polish it

master
sta 9 years ago
parent 65ec869733
commit 8614a891f0

@ -315,10 +315,10 @@ namespace WebSocketSharp.Server
string path, out WebSocketServiceHost host string path, out WebSocketServiceHost host
) )
{ {
lock (_sync) { path = HttpUtility.UrlDecode (path).TrimEndSlash ();
path = HttpUtility.UrlDecode (path).TrimEndSlash ();
lock (_sync)
return _hosts.TryGetValue (path, out host); return _hosts.TryGetValue (path, out host);
}
} }
internal bool Remove (string path) internal bool Remove (string path)

Loading…
Cancel
Save