# HG changeset patch # User Kim Alvefur # Date 1558875856 -7200 # Node ID 4498f601516d9507a7cce441c383ca7d9e3393fd # Parent 4a0d990253a00b7579af5f0a2d360d28ae6c8293 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. diff -r 4a0d990253a0 -r 4498f601516d plugins/mod_csi_simple.lua --- 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;