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,8 +729,19 @@ Guacamole.ChainedTunnel = function(tunnel_chain) {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Attempt connection
|
try {
|
||||||
current_tunnel.connect(connect_data);
|
|
||||||
|
// Attempt connection
|
||||||
|
current_tunnel.connect(connect_data);
|
||||||
|
|
||||||
|
}
|
||||||
|
catch (e) {
|
||||||
|
|
||||||
|
// Call error handler of current tunnel on error
|
||||||
|
current_tunnel.onerror(e.message);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user