GUACAMOLE-846: tunnel.uuid not initialized if tunnel becomes UNSTABLE

This commit is contained in:
avwx
2019-07-16 18:02:30 -04:00
parent 63fa8504b8
commit e17453ef97

View File

@@ -1015,7 +1015,7 @@ Guacamole.WebSocketTunnel = function(tunnelURL) {
var opcode = elements.shift(); var opcode = elements.shift();
// Update state and UUID when first instruction received // Update state and UUID when first instruction received
if (tunnel.state === Guacamole.Tunnel.State.CONNECTING) { if (tunnel.uuid === null) {
// Associate tunnel UUID if received // Associate tunnel UUID if received
if (opcode === Guacamole.Tunnel.INTERNAL_DATA_OPCODE) if (opcode === Guacamole.Tunnel.INTERNAL_DATA_OPCODE)