aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_csi_simple.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-11-17 15:36:10 +0100
committerKim Alvefur <zash@zash.se>2018-11-17 15:36:10 +0100
commit320392f1d11e27b89f8ce0556812465c1bf1ed40 (patch)
treeb0006784c0e3fe2511d58db3b32034f88cd89c17 /plugins/mod_csi_simple.lua
parent301cad9b1641efbd1f185abf206c4071b81b019b (diff)
downloadprosody-320392f1d11e27b89f8ce0556812465c1bf1ed40.tar.gz
prosody-320392f1d11e27b89f8ce0556812465c1bf1ed40.zip
mod_csi_simple: Consider non-stanza objects important
Most cases are for keepalive or stream closing, where it needs to be flushed anyways.
Diffstat (limited to 'plugins/mod_csi_simple.lua')
-rw-r--r--plugins/mod_csi_simple.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_csi_simple.lua b/plugins/mod_csi_simple.lua
index 6fc88291..c8151df5 100644
--- a/plugins/mod_csi_simple.lua
+++ b/plugins/mod_csi_simple.lua
@@ -48,6 +48,9 @@ local queue_size = module:get_option_number("csi_queue_size", 256);
module:hook("csi-is-stanza-important", function (event)
local stanza = event.stanza;
+ if not st.is_stanza(stanza) then
+ return true;
+ end
local st_name = stanza.name;
if not st_name then return false; end
local st_type = stanza.attr.type;