From: sapier Date: Sat, 10 May 2014 22:14:57 +0000 (+0200) Subject: Fix possible deadlock in error conditions X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=f76b9d724b322875016005763ae8389c3c23e5f1;p=zefram%2Fminetest%2Fminetest_engine.git Fix possible deadlock in error conditions --- 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;