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
commit2dbd1528bb118e77463db85403d535d307ec050d (patch)
treeab7e71e4ea5bf087db56cc1f6c965182ef754d05 /plugins
parentfa0d394f9b0ab4f503558d9c944fe4052d5eb324 (diff)
downloadprosody-2dbd1528bb118e77463db85403d535d307ec050d.tar.gz
prosody-2dbd1528bb118e77463db85403d535d307ec050d.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;