mod_muc_mam: Schedule cleanup again on failure 0.11
authorKim Alvefur <zash@zash.se>
Tue, 24 Dec 2019 00:26:40 +0100
branch0.11
changeset 10566 670afc079f68
parent 10565 29b3eb95c268
child 10567 e8db377a2983
child 10570 f4d12b1434c6
mod_muc_mam: Schedule cleanup again on failure
plugins/mod_muc_mam.lua
--- 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