mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-20 14:57:44 +08:00
use a delay when deleting
This commit is contained in:
parent
3a48be036b
commit
1f7537ee05
1 changed files with 1 additions and 1 deletions
2
imap.js
2
imap.js
|
@ -2066,7 +2066,7 @@ function clearExpiredMessages() {
|
||||||
return cursor.close(() => done(err));
|
return cursor.close(() => done(err));
|
||||||
}
|
}
|
||||||
deleted++;
|
deleted++;
|
||||||
processNext();
|
setTimeout(processNext, 100);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue