mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-11 07:27:42 +00:00
GUAC-963: Use $evalAsync() for changes to $scope that may occur synchronously.
This commit is contained in:
@@ -243,7 +243,7 @@ angular.module('client').factory('ManagedClient', ['$rootScope', '$injector',
|
||||
|
||||
// Update connection state as tunnel state changes
|
||||
tunnel.onstatechange = function tunnelStateChanged(state) {
|
||||
$rootScope.$apply(function updateTunnelState() {
|
||||
$rootScope.$evalAsync(function updateTunnelState() {
|
||||
|
||||
switch (state) {
|
||||
|
||||
@@ -269,7 +269,7 @@ angular.module('client').factory('ManagedClient', ['$rootScope', '$injector',
|
||||
|
||||
// Update connection state as client state changes
|
||||
client.onstatechange = function clientStateChanged(clientState) {
|
||||
$rootScope.$apply(function updateClientState() {
|
||||
$rootScope.$evalAsync(function updateClientState() {
|
||||
|
||||
switch (clientState) {
|
||||
|
||||
|
Reference in New Issue
Block a user