Errors thrown by connect() of a chained tunnel should be resent to onerror() if caught within ChainedTunnel.attach().

This commit is contained in:
Michael Jumper
2012-03-09 16:27:22 -08:00
parent 10b192b677
commit b11445e8dd

View File

@@ -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) {