mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-12-31 04:33:09 +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);
|
||||
|
||||
// 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(
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue