diff --git a/guacamole-common-js/src/main/webapp/modules/Tunnel.js b/guacamole-common-js/src/main/webapp/modules/Tunnel.js index 4f056c9db..149dce464 100644 --- a/guacamole-common-js/src/main/webapp/modules/Tunnel.js +++ b/guacamole-common-js/src/main/webapp/modules/Tunnel.js @@ -1015,7 +1015,7 @@ Guacamole.WebSocketTunnel = function(tunnelURL) { var opcode = elements.shift(); // Update state and UUID when first instruction received - if (tunnel.state === Guacamole.Tunnel.State.CONNECTING) { + if (tunnel.uuid === null) { // Associate tunnel UUID if received if (opcode === Guacamole.Tunnel.INTERNAL_DATA_OPCODE)