aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-05-26 15:04:16 +0200
committerKim Alvefur <zash@zash.se>2019-05-26 15:04:16 +0200
commit6fcaa64f6139a5093a328b2458ea4ac74a153d51 (patch)
treeab7e71e4ea5bf087db56cc1f6c965182ef754d05 /plugins
parent99f6c695075dc4a93deb5aea4e8acaf635d48fdb (diff)
downloadprosody-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.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_csi_simple.lua4
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;