[Modify] Polish it

This commit is contained in:
sta 2017-03-09 15:26:11 +09:00
parent 681fa65c0d
commit a26e0f9633

View File

@ -325,13 +325,8 @@ namespace WebSocketSharp.Server
WebSocketServiceHost host;
lock (_sync) {
if (!_hosts.TryGetValue (path, out host)) {
_logger.Error (
"A WebSocket service with the specified path could not be found."
);
if (!_hosts.TryGetValue (path, out host))
return false;
}
_hosts.Remove (path);
}