mod_smacks: Clear resumption token from persistent storage on resumption
authorKim Alvefur <zash@zash.se>
Wed, 01 Dec 2021 20:13:08 +0100
changeset 12056 d17b8fcf11c7
parent 12055 c32ef09ab452
child 12057 03e9587fbfd2
mod_smacks: Clear resumption token from persistent storage on resumption
plugins/mod_smacks.lua
--- a/plugins/mod_smacks.lua	Wed Dec 01 16:41:10 2021 +0100
+++ b/plugins/mod_smacks.lua	Wed Dec 01 20:13:08 2021 +0100
@@ -549,6 +549,7 @@
 			session.send(st.stanza("failed", { xmlns = xmlns_sm, h = format_h(old_session.h) })
 				:tag("item-not-found", { xmlns = xmlns_errors })
 			);
+			old_session_registry:set(session.username, id, nil);
 		else
 			session.send(st.stanza("failed", { xmlns = xmlns_sm })
 				:tag("item-not-found", { xmlns = xmlns_errors })