mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUACAMOLE-724: ManagedClientGroup.forEach() must not attempt to visit non-existent clients.
This commit is contained in:
@@ -255,8 +255,13 @@ angular.module('client').factory('ManagedClientGroup', ['$injector', function de
|
|||||||
var current = 0;
|
var current = 0;
|
||||||
for (var row = 0; row < group.rows; row++) {
|
for (var row = 0; row < group.rows; row++) {
|
||||||
for (var column = 0; column < group.columns; column++) {
|
for (var column = 0; column < group.columns; column++) {
|
||||||
|
|
||||||
callback(group.clients[current], row, column, current);
|
callback(group.clients[current], row, column, current);
|
||||||
current++;
|
current++;
|
||||||
|
|
||||||
|
if (current >= group.clients.length)
|
||||||
|
return;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user