[Modify] Polish it
This commit is contained in:
parent
b4bcf2705b
commit
8a095213f6
@ -309,14 +309,8 @@ namespace WebSocketSharp.Server
|
||||
|
||||
private bool tryGetSession (string id, out IWebSocketSession session)
|
||||
{
|
||||
bool ret;
|
||||
lock (_sync)
|
||||
ret = _sessions.TryGetValue (id, out session);
|
||||
|
||||
if (!ret)
|
||||
_logger.Error ("A session with the specified ID isn't found:\n ID: " + id);
|
||||
|
||||
return ret;
|
||||
return _sessions.TryGetValue (id, out session);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
Loading…
Reference in New Issue
Block a user