fix crash

This commit is contained in:
biglyderv 2025-01-30 09:40:21 -05:00
parent 316d8d0ded
commit 9098dea10c

View file

@ -58,9 +58,9 @@ async function siteCollector(user, path, site) {
for (let u of users) {
let it = 0;
while (p.length >= 15) {
while (p.length >= process.env.maxRate || 15) {
p = p.filter(x => x != 'hi');
if (p == []) break;
if (p.length == 0) break;
let pv = await Promise.any(p);
it++;
if (it > 10) {