# HG changeset patch # User Kim Alvefur # Date 1638385988 -3600 # Node ID d17b8fcf11c7ef1bc7203c3625b10afb790579d6 # Parent c32ef09ab452e9c28ddb8b6920a48e992be10f0e mod_smacks: Clear resumption token from persistent storage on resumption diff -r c32ef09ab452 -r d17b8fcf11c7 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 })