[Modify] Polish it

This commit is contained in:
sta 2017-08-09 17:11:08 +09:00
parent b4bcf2705b
commit 8a095213f6

View File

@ -309,14 +309,8 @@ namespace WebSocketSharp.Server
private bool tryGetSession (string id, out IWebSocketSession session) private bool tryGetSession (string id, out IWebSocketSession session)
{ {
bool ret;
lock (_sync) lock (_sync)
ret = _sessions.TryGetValue (id, out session); return _sessions.TryGetValue (id, out session);
if (!ret)
_logger.Error ("A session with the specified ID isn't found:\n ID: " + id);
return ret;
} }
#endregion #endregion