From 61347a5c9e958da24a4326645d9df1b7aafa561c Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Mon, 5 Jun 2017 18:57:37 +0300 Subject: [PATCH] use a delay when deleting --- imap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imap.js b/imap.js index 1c3b3a31..1c471b25 100644 --- a/imap.js +++ b/imap.js @@ -1970,7 +1970,7 @@ function clearExpiredMessages() { clearTimeout(gcTimeout); // 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) { server.logger.error( {