diff --git a/src/server.cpp b/src/server.cpp index 288f254e..22efca67 100644 --- a/src/server.cpp +++ b/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;