Changeset

10562:670afc079f68 0.11

mod_muc_mam: Schedule cleanup again on failure
author Kim Alvefur <zash@zash.se>
date Tue, 24 Dec 2019 00:26:40 +0100
parents 10561:29b3eb95c268
children 10563:e8db377a2983 10566:f4d12b1434c6
files plugins/mod_muc_mam.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_muc_mam.lua	Tue Dec 24 00:26:37 2019 +0100
+++ b/plugins/mod_muc_mam.lua	Tue Dec 24 00:26:40 2019 +0100
@@ -460,6 +460,7 @@
 				num_rooms = num_rooms + 1;
 				sum = sum + (tonumber(ok) or 0);
 			else
+				cleanup_map:set(cut_off, room, true);
 				module:log("error", "Could not delete messages for room '%s': %s", room, err);
 			end
 		end