From 1f7537ee05eb96dfce53bd2c103e075b9f03af30 Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Mon, 5 Jun 2017 18:55:51 +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 09ec61d0..1c3b3a31 100644 --- a/imap.js +++ b/imap.js @@ -2066,7 +2066,7 @@ function clearExpiredMessages() { return cursor.close(() => done(err)); } deleted++; - processNext(); + setTimeout(processNext, 100); } ); });