Use traditional for loop instead of .forEach()
This commit is contained in:
parent
2edfd1fad5
commit
56429ffebf
@ -37,10 +37,10 @@ QueueSeeker.prototype._seek = function (client, cursor, users, attemps, callback
|
|||||||
|
|
||||||
var queues = currentCursor[1];
|
var queues = currentCursor[1];
|
||||||
if (queues) {
|
if (queues) {
|
||||||
queues.forEach(function (queue) {
|
for (var i = 0; i < queues.length; i++) {
|
||||||
var user = queue.substr(QUEUE.PREFIX.length);
|
var user = queues[i].substr(QUEUE.PREFIX.length);
|
||||||
users[user] = true;
|
users[user] = true;
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var hasMore = (parseInt(currentCursor[0], 10) > 0) && (attemps < MAX_SCAN_ATTEMPTS);
|
var hasMore = (parseInt(currentCursor[0], 10) > 0) && (attemps < MAX_SCAN_ATTEMPTS);
|
||||||
|
Loading…
Reference in New Issue
Block a user