diff options
author | Kim Alvefur <zash@zash.se> | 2021-11-16 16:03:23 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-11-16 16:03:23 +0100 |
commit | 6289a2f29d747287168e59659a6d5b2bbf17ad84 (patch) | |
tree | 7104b20e7e547da2a6d326001da9f1173059fe70 /plugins | |
parent | 820eabbed63719a2ee4fa731de74e23f245af75b (diff) | |
download | prosody-6289a2f29d747287168e59659a6d5b2bbf17ad84.tar.gz prosody-6289a2f29d747287168e59659a6d5b2bbf17ad84.zip |
mod_csi_simple: Detach cleanly from sessions if unloaded while flushing
Since it changes the state to "flushing" while doing just that.
Attempting to remove the filters from a session that does not have them
should be a safe noop.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_csi_simple.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_csi_simple.lua b/plugins/mod_csi_simple.lua index f5b5c808..efac1e9d 100644 --- a/plugins/mod_csi_simple.lua +++ b/plugins/mod_csi_simple.lua @@ -214,7 +214,7 @@ end function module.unload() for _, user_session in pairs(prosody.hosts[module.host].sessions) do for _, session in pairs(user_session.sessions) do - if session.state == "inactive" then + if session.state and session.state ~= "active" then disable_optimizations(session); end end |