avwx commented on a change in pull request #426: GUACAMOLE-846: tunnel.uuid not
initialized if tunnel becomes UNSTABLE
URL: https://github.com/apache/guacamole-client/pull/426#discussion_r304136439
##########
File path: 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.state === Guacamole.Tunnel.State.CONNECTING ||
tunnel.uuid === null) {
Review comment:
agreed. Do you prefer `!tunnel.uuid` over `tunnel.uuid === null`?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services