mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-5: Do not attempt to join a closed connection.
This commit is contained in:
@@ -467,7 +467,7 @@ public abstract class AbstractGuacamoleTunnelService implements GuacamoleTunnelS
|
||||
|
||||
// Verify that the connection ID is known
|
||||
String connectionID = activeConnection.getConnectionID();
|
||||
if (connectionID == null)
|
||||
if (!activeConnection.isActive() || connectionID == null)
|
||||
throw new GuacamoleResourceNotFoundException("No existing connection to be joined.");
|
||||
|
||||
// Build configuration from the sharing profile and the ID of
|
||||
|
@@ -36,8 +36,7 @@ import org.apache.guacamole.protocol.ConfiguredGuacamoleSocket;
|
||||
/**
|
||||
* A connection record implementation that describes an active connection. As
|
||||
* the associated connection has not yet ended, getEndDate() will always return
|
||||
* null, and isActive() will always return true. The associated start date will
|
||||
* be the time of this objects creation.
|
||||
* null. The associated start date will be the time of this objects creation.
|
||||
*
|
||||
* @author Michael Jumper
|
||||
*/
|
||||
@@ -325,10 +324,7 @@ public class ActiveConnectionRecord implements ConnectionRecord {
|
||||
|
||||
@Override
|
||||
public boolean isActive() {
|
||||
|
||||
// Active connections are active by definition
|
||||
return true;
|
||||
|
||||
return tunnel != null && tunnel.isOpen();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user