mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUACAMOLE-1545: Ensure tunnel "onload" fires only for true state changes.
Previously, the state of the tunnel implementations was initialized to "CONNECTING", which is incorrect and may result in (1) initial state changes to "CONNECTING" not firing "onstatechange" and (2) the state change to "CLOSED" incorrectly firing when initially connecting, despite there not being an established connection.
This commit is contained in:
@@ -104,7 +104,7 @@ Guacamole.Tunnel = function() {
|
||||
*
|
||||
* @type {!number}
|
||||
*/
|
||||
this.state = Guacamole.Tunnel.State.CONNECTING;
|
||||
this.state = Guacamole.Tunnel.State.CLOSED;
|
||||
|
||||
/**
|
||||
* The maximum amount of time to wait for data to be received, in
|
||||
|
Reference in New Issue
Block a user