GUACAMOLE-724: ManagedClientGroup.forEach() must not attempt to visit non-existent clients.

This commit is contained in:
Michael Jumper
2021-06-28 12:54:15 -07:00
parent b3c410a371
commit 0118489001

View File

@@ -255,8 +255,13 @@ angular.module('client').factory('ManagedClientGroup', ['$injector', function de
var current = 0;
for (var row = 0; row < group.rows; row++) {
for (var column = 0; column < group.columns; column++) {
callback(group.clients[current], row, column, current);
current++;
if (current >= group.clients.length)
return;
}
}
};