From 72ec06240f97cca6d2dfdb73ac721c6dbdb86193 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 1 Apr 2016 18:56:26 +0200 Subject: mod_bosh: Skip sending stanzas removed out by filters (fixes #657) --- plugins/mod_bosh.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins') diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua index 840de725..032b20a8 100644 --- a/plugins/mod_bosh.lua +++ b/plugins/mod_bosh.lua @@ -279,6 +279,7 @@ function stream_callbacks.streamopened(context, attr) 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]; -- cgit v1.2.3