Skip to content
Permalink
Browse files

Fix possible deadlock in error conditions

  • Loading branch information...
sapier sapier
sapier authored and sapier committed May 10, 2014
1 parent c8aed03 commit f76b9d724b322875016005763ae8389c3c23e5f1
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/server.cpp
@@ -2894,8 +2894,10 @@ bool Server::getClientInfo(
m_clients.Lock();
RemoteClient* client = m_clients.lockedGetClientNoEx(peer_id,Invalid);

if (client == NULL)
if (client == NULL) {
m_clients.Unlock();
return false;
}

*uptime = client->uptime();
*ser_vers = client->serialization_version;

0 comments on commit f76b9d7

Please sign in to comment.
You can’t perform that action at this time.