From 78a1e8352bd4bc6125f2e2c402e92de7e6ad18e7 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 1 Dec 2021 20:13:08 +0100 Subject: mod_smacks: Clear resumption token from persistent storage on resumption --- plugins/mod_smacks.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins') diff --git a/plugins/mod_smacks.lua b/plugins/mod_smacks.lua index 9e3b5290..b4ac7ec5 100644 --- a/plugins/mod_smacks.lua +++ b/plugins/mod_smacks.lua @@ -549,6 +549,7 @@ function handle_resume(session, stanza, xmlns_sm) 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 }) -- cgit v1.2.3