mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-02 21:52:34 +08:00
use a delay when deleting
This commit is contained in:
parent
1f7537ee05
commit
61347a5c9e
1 changed files with 1 additions and 1 deletions
2
imap.js
2
imap.js
|
@ -1970,7 +1970,7 @@ function clearExpiredMessages() {
|
||||||
clearTimeout(gcTimeout);
|
clearTimeout(gcTimeout);
|
||||||
|
|
||||||
// First, acquire the lock. This prevents multiple connected clients for deleting the same messages
|
// First, acquire the lock. This prevents multiple connected clients for deleting the same messages
|
||||||
gcLock.acquireLock('gc_expired', 61 * 60 * 1000 /* Lock expires after 61min if not released */, (err, lock) => {
|
gcLock.acquireLock('gc_expired', 3 * 60 * 60 * 1000 /* Lock expires after 61min if not released */, (err, lock) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
server.logger.error(
|
server.logger.error(
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue