Errors thrown by connect() of a chained tunnel should be resent to onerror() if caught within ChainedTunnel.attach().
This commit is contained in:
1 parent
10b192b677
commit
b11445e8dd
1 file changed
+13
-2
@@ -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