mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Fix possible deadlock in error conditions
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user