fix crash
This commit is contained in:
parent
316d8d0ded
commit
9098dea10c
1 changed files with 2 additions and 2 deletions
4
site.js
4
site.js
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue