# HG changeset patch # User Kim Alvefur # Date 1639421322 -3600 # Node ID def20683c161b5b6497e2a168ce2cd6214ea7d8a # Parent 337b489532b78c83ac8f7a35e0ec074886d3c6b7 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. diff -r 337b489532b7 -r def20683c161 plugins/mod_smacks.lua --- a/plugins/mod_smacks.lua Mon Dec 13 16:38:33 2021 +0100 +++ b/plugins/mod_smacks.lua Mon Dec 13 19:48:42 2021 +0100 @@ -572,6 +572,7 @@ 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;