mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
Errors thrown by connect() of a chained tunnel should be resent to onerror() if caught within ChainedTunnel.attach().
This commit is contained in:
@@ -729,9 +729,20 @@ Guacamole.ChainedTunnel = function(tunnel_chain) {
|
||||
|
||||
};
|
||||
|
||||
try {
|
||||
|
||||
// Attempt connection
|
||||
current_tunnel.connect(connect_data);
|
||||
|
||||
}
|
||||
catch (e) {
|
||||
|
||||
// Call error handler of current tunnel on error
|
||||
current_tunnel.onerror(e.message);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
this.connect = function(data) {
|
||||
|
Reference in New Issue
Block a user