[Modify] Polish it
This commit is contained in:
parent
da25c804ee
commit
65ec869733
@ -285,9 +285,9 @@ namespace WebSocketSharp.Server
|
|||||||
internal void Add<TBehavior> (string path, Func<TBehavior> initializer)
|
internal void Add<TBehavior> (string path, Func<TBehavior> initializer)
|
||||||
where TBehavior : WebSocketBehavior
|
where TBehavior : WebSocketBehavior
|
||||||
{
|
{
|
||||||
lock (_sync) {
|
|
||||||
path = HttpUtility.UrlDecode (path).TrimEndSlash ();
|
path = HttpUtility.UrlDecode (path).TrimEndSlash ();
|
||||||
|
|
||||||
|
lock (_sync) {
|
||||||
WebSocketServiceHost host;
|
WebSocketServiceHost host;
|
||||||
if (_hosts.TryGetValue (path, out host)) {
|
if (_hosts.TryGetValue (path, out host)) {
|
||||||
_logger.Error (
|
_logger.Error (
|
||||||
|
Loading…
Reference in New Issue
Block a user