Software /
code /
prosody
Diff
plugins/mod_bosh.lua @ 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 |
parent | 7283:32754b15b28a |
child | 7327:d62f0471470f |
child | 7374:3e8851b7c6e8 |
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];