diff options
author | Kim Alvefur <zash@zash.se> | 2019-05-26 15:04:16 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-05-26 15:04:16 +0200 |
commit | 6fcaa64f6139a5093a328b2458ea4ac74a153d51 (patch) | |
tree | ab7e71e4ea5bf087db56cc1f6c965182ef754d05 | |
parent | 99f6c695075dc4a93deb5aea4e8acaf635d48fdb (diff) | |
download | prosody-6fcaa64f6139a5093a328b2458ea4ac74a153d51.tar.gz prosody-6fcaa64f6139a5093a328b2458ea4ac74a153d51.zip |
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.
-rw-r--r-- | plugins/mod_csi_simple.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_csi_simple.lua b/plugins/mod_csi_simple.lua index a9148618..13002ea8 100644 --- a/plugins/mod_csi_simple.lua +++ b/plugins/mod_csi_simple.lua @@ -108,6 +108,10 @@ module:hook("csi-client-active", function (event) 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; |