Changeset

9632:fdefc43bffff 0.11

mod_csi_simple: Consider non-stanza objects important Most cases are for keepalive or stream closing, where it needs to be flushed anyways.
author Kim Alvefur <zash@zash.se>
date Sat, 17 Nov 2018 15:36:10 +0100
parents 9631:d6104aaf94bc
children 9633:28be90eb774a 9634:f457edaab510
files plugins/mod_csi_simple.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_csi_simple.lua	Sat Nov 17 15:28:49 2018 +0100
+++ b/plugins/mod_csi_simple.lua	Sat Nov 17 15:36:10 2018 +0100
@@ -48,6 +48,9 @@
 
 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;