Software /
code /
prosody
Diff
plugins/mod_csi_simple.lua @ 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 |
parent | 9923:e83dfcdeab59 |
child | 10277:45a58127a3e5 |
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;