mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +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 {
|
||||||
|
|
||||||
|
// Mark this connection as inactive
|
||||||
|
synchronized (activeConnectionMap) {
|
||||||
|
|
||||||
|
if (isOpen())
|
||||||
|
activeConnectionMap.closeConnection(historyID, connectionGroupID);
|
||||||
|
|
||||||
// Close socket
|
// Close socket
|
||||||
socket.close();
|
socket.close();
|
||||||
|
|
||||||
// Mark this connection as inactive
|
|
||||||
synchronized (activeConnectionMap) {
|
|
||||||
activeConnectionMap.closeConnection(historyID, connectionGroupID);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user