Skip to content

Commit

Permalink
Fix handling of change of guacamole tunnel states: previously used th…
Browse files Browse the repository at this point in the history
…e "open" tunnel state (1) to show the "connecting" screen - this should be the "connecting" tunnel state (0). After the unstable "state" is corrected, guacamole fires an "open" tunnel state which generated to presentation of the connecting screen. Fixes #3.
  • Loading branch information
stuartcaunt committed Dec 9, 2024
1 parent cd9084b commit e8dc94a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/app/user/instance/instance.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,6 @@ export class InstanceComponent implements OnInit, OnDestroy {

} else {
const tunnel = this.accountService.createGuacamoleRemoteDesktopTunnel(token, this.eventsGateway.clientId);
tunnel.unstableThreshold = 10000;
this.manager = new GuacamoleVirtualDesktopManager(tunnel);
}
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export class GuacamoleVirtualDesktopManager extends VirtualDesktopManager {
private handleTunnelStateChange(state: number): void {
switch (state) {
// Connection is being established
case 1:
case 0:
this.setState(VirtualDesktopManager.STATE.CONNECTING);
break;
// Connection has closed
Expand Down

0 comments on commit e8dc94a

Please sign in to comment.