# HG changeset patch # User Matthew Wild # Date 1661785131 -3600 # Node ID 90d90b540b6b90e088f9dbcb8fd2c835ebf1600d # Parent 546c7e0f3f3103c88120e00f01ebe3e79f81c9ff mod_smacks: Set session.smacks after sending to fix traceback ...with opportunistic writes enabled. diff -r 546c7e0f3f31 -r 90d90b540b6b plugins/mod_smacks.lua --- a/plugins/mod_smacks.lua Mon Aug 29 11:47:31 2022 +0200 +++ b/plugins/mod_smacks.lua Mon Aug 29 15:58:51 2022 +0100 @@ -349,8 +349,6 @@ return true; end - session.smacks = xmlns_sm; - (session.sends2s or session.send)(st.stanza("enabled", { xmlns = xmlns_sm; id = enabled.id; @@ -358,6 +356,7 @@ max = enabled.resume_max; })); + session.smacks = xmlns_sm; enabled.finish(); return true;