mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-10-27 15:13:07 +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
|
@Override
|
||||||
public void close() throws GuacamoleException {
|
public void close() throws GuacamoleException {
|
||||||
|
|
||||||
// Close socket
|
|
||||||
socket.close();
|
|
||||||
|
|
||||||
// Mark this connection as inactive
|
// Mark this connection as inactive
|
||||||
synchronized (activeConnectionMap) {
|
synchronized (activeConnectionMap) {
|
||||||
activeConnectionMap.closeConnection(historyID, connectionGroupID);
|
|
||||||
|
if (isOpen())
|
||||||
|
activeConnectionMap.closeConnection(historyID, connectionGroupID);
|
||||||
|
|
||||||
|
// Close socket
|
||||||
|
socket.close();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user