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

This commit is contained in:
Michael Jumper committed 2021-07-08 03:31:48 -07:00
1 parent b3c410a371
commit 0118489001
1 file changed
+5
@@ -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;
}
}
};