mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-30 16:43:22 +00:00 
			
		
		
		
	GUAC-574: Only update active connections if socket not yet closed.
This commit is contained in:
		| @@ -87,12 +87,15 @@ public class MySQLGuacamoleSocket implements GuacamoleSocket { | ||||
|     @Override | ||||
|     public void close() throws GuacamoleException { | ||||
|  | ||||
|         // Close socket | ||||
|         socket.close(); | ||||
|  | ||||
|         // Mark this connection as inactive | ||||
|         synchronized (activeConnectionMap) { | ||||
|             activeConnectionMap.closeConnection(historyID, connectionGroupID); | ||||
|  | ||||
|             if (isOpen()) | ||||
|                 activeConnectionMap.closeConnection(historyID, connectionGroupID); | ||||
|  | ||||
|             // Close socket | ||||
|             socket.close(); | ||||
|  | ||||
|         } | ||||
|  | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user