GUACAMOLE-1562: Update chained tunnel UUID when underlying tunnel receives UUID.
This commit is contained in:
1 parent
c555fe6411
commit
b9e79d99c5
1 file changed
+6
-1
@@ -1236,12 +1236,17 @@ Guacamole.ChainedTunnel = function(tunnelChain) {
|
||||
tunnel.onstatechange = chained_tunnel.onstatechange;
|
||||
tunnel.oninstruction = chained_tunnel.oninstruction;
|
||||
tunnel.onerror = chained_tunnel.onerror;
|
||||
tunnel.onuuid = chained_tunnel.onuuid;
|
||||
|
||||
// Assign UUID if already known
|
||||
if (tunnel.uuid)
|
||||
chained_tunnel.setUUID(tunnel.uuid);
|
||||
|
||||
// Assign any future received UUIDs such that they are
|
||||
// accessible from the main uuid property of the chained tunnel
|
||||
tunnel.onuuid = function uuidReceived(uuid) {
|
||||
chained_tunnel.setUUID(uuid);
|
||||
};
|
||||
|
||||
committedTunnel = tunnel;
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user