From 5b8170eee447dc8a81814a1a02ba9962e59842ab Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Tue, 28 Feb 2023 11:01:42 -0800 Subject: [PATCH] GUACAMOLE-1744: Clean up UI only if user is not logged in. --- .../main/frontend/src/app/index/controllers/indexController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guacamole/src/main/frontend/src/app/index/controllers/indexController.js b/guacamole/src/main/frontend/src/app/index/controllers/indexController.js index 232e0495d..52c9d5853 100644 --- a/guacamole/src/main/frontend/src/app/index/controllers/indexController.js +++ b/guacamole/src/main/frontend/src/app/index/controllers/indexController.js @@ -252,7 +252,7 @@ angular.module('index').controller('indexController', ['$scope', '$injector', // that connection activity will already automatically check session // validity. $interval(function cleanUpViewIfSessionInvalid() { - if ($scope.applicationState === ApplicationState.READY && !hasActiveTunnel()) { + if (!!authenticationService.getCurrentToken() && !hasActiveTunnel()) { authenticationService.getValidity().then(function validityDetermined(valid) { if (!valid) $scope.reAuthenticate();