Software /
code /
prosody
Changeset
10025:4498f601516d
mod_csi_simple: Disable optimizations on disconnect (fixes #1358)
The connection becomes invalid here, regardless of 3rd party modules
that might keep the session alive.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 26 May 2019 15:04:16 +0200 |
parents | 10024:4a0d990253a0 |
children | 10027:c0ee2ed8ef19 |
files | plugins/mod_csi_simple.lua |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_csi_simple.lua Sun May 05 07:24:12 2019 +0200 +++ b/plugins/mod_csi_simple.lua Sun May 26 15:04:16 2019 +0200 @@ -108,6 +108,10 @@ disable_optimizations(session); end); +module:hook("pre-resource-unbind", function (event) + local session = event.session; + disable_optimizations(session); +end); module:hook("c2s-ondrain", function (event) local session = event.session;