[Modify] Polish it
This commit is contained in:
parent
681fa65c0d
commit
a26e0f9633
@ -325,13 +325,8 @@ namespace WebSocketSharp.Server
|
|||||||
|
|
||||||
WebSocketServiceHost host;
|
WebSocketServiceHost host;
|
||||||
lock (_sync) {
|
lock (_sync) {
|
||||||
if (!_hosts.TryGetValue (path, out host)) {
|
if (!_hosts.TryGetValue (path, out host))
|
||||||
_logger.Error (
|
|
||||||
"A WebSocket service with the specified path could not be found."
|
|
||||||
);
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
|
|
||||||
_hosts.Remove (path);
|
_hosts.Remove (path);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user