Changeset

7326:d11701e86702

mod_bosh: Skip sending stanzas removed out by filters (fixes #657)
author Kim Alvefur <zash@zash.se>
date Fri, 01 Apr 2016 18:56:26 +0200
parents 7325:7baf1b14defb
children 7327:d62f0471470f 7329:ab811c1bb730
files plugins/mod_bosh.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_bosh.lua	Fri Apr 01 15:56:12 2016 +0200
+++ b/plugins/mod_bosh.lua	Fri Apr 01 18:56:26 2016 +0200
@@ -279,6 +279,7 @@
 			end
 			s = filter("stanzas/out", s);
 			--log("debug", "Sending BOSH data: %s", tostring(s));
+			if not s then return true end
 			t_insert(session.send_buffer, tostring(s));
 
 			local oldest_request = r[1];