mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-09 22:51:22 +00:00
GUAC-981: Fix handling of errors. Fix handling of auto-reconnect.
This commit is contained in:
@@ -381,11 +381,12 @@ angular.module('client').controller('clientController', ['$scope', '$routeParams
|
||||
// Show status dialog when connection status changes
|
||||
$scope.$watch('client.clientState.connectionState', function clientStateChanged(connectionState) {
|
||||
|
||||
// Hide status if no known state
|
||||
if (!connectionState) {
|
||||
$scope.showStatus(false);
|
||||
// Hide any existing status
|
||||
$scope.showStatus(false);
|
||||
|
||||
// Do not display status if status not known
|
||||
if (!connectionState)
|
||||
return;
|
||||
}
|
||||
|
||||
// Get any associated status code
|
||||
var status = $scope.client.clientState.statusCode;
|
||||
|
Reference in New Issue
Block a user