diff options
author | Kim Alvefur <zash@zash.se> | 2021-12-13 19:48:42 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-12-13 19:48:42 +0100 |
commit | 816ed3d7391f1144468e85b23e10d09cbdbeb039 (patch) | |
tree | 880af94e118349326921fd0a2982b2fa490b0057 /plugins | |
parent | 0e997ab3f9673383aa32310f71b87a91e92881f2 (diff) | |
download | prosody-816ed3d7391f1144468e85b23e10d09cbdbeb039.tar.gz prosody-816ed3d7391f1144468e85b23e10d09cbdbeb039.zip |
mod_smacks: Update reference to session from send()
a86ae74da96c caused the stanza queue to double on resumption because
session.send() keeps a reference to the session which is what gets
passed to filters, so the added flag was not seen in the filter.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_smacks.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_smacks.lua b/plugins/mod_smacks.lua index 8f231474..68dd6863 100644 --- a/plugins/mod_smacks.lua +++ b/plugins/mod_smacks.lua @@ -572,6 +572,7 @@ function handle_resume(session, stanza, xmlns_sm) original_session.ip = session.ip; original_session.conn = session.conn; original_session.send = session.send; + original_session.send.session = original_session; original_session.close = session.close; original_session.filter = session.filter; original_session.filter.session = original_session; |