Software /
code /
prosody
Changeset
12041:def20683c161
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.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 13 Dec 2021 19:48:42 +0100 |
parents | 12040:337b489532b7 |
children | 12042:fe643b3a41f2 |
files | plugins/mod_smacks.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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;