diff options
author | Kim Alvefur <zash@zash.se> | 2016-04-01 18:56:26 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-04-01 18:56:26 +0200 |
commit | 5db607f37e4370d12d350c0894804331a0231d5e (patch) | |
tree | e330fbc799b5c7d726a2e13091c709614d9de3dd /plugins | |
parent | b1cce0188faf8d30c9884d40a15c794f524e4286 (diff) | |
download | prosody-5db607f37e4370d12d350c0894804331a0231d5e.tar.gz prosody-5db607f37e4370d12d350c0894804331a0231d5e.zip |
mod_bosh: Skip sending stanzas removed out by filters (fixes #657)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_bosh.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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]; |