use a delay when deleting

This commit is contained in:
Andris Reinman 2017-06-05 18:57:37 +03:00
parent 1f7537ee05
commit 61347a5c9e

View file

@ -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(
{