Stop the cleanup timer if the hook returns false.

This commit is contained in:
akwizgran
2021-02-25 17:21:17 +00:00
committed by Torsten Grote
parent 3d8826cef9
commit 7e62d2aeff

View File

@@ -163,6 +163,7 @@ class CleanupManagerImpl implements CleanupManager, Service, EventListener {
messageIds.add(m);
} else {
LOG.info("Message was not deleted");
db.stopCleanupTimer(txn, m);
}
}
for (Entry<GroupId, Collection<MessageId>> e : deleted.entrySet()) {