projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mod_bosh: Skip sending stanzas removed out by filters (fixes #657)
[prosody.git]
/
plugins
/
mod_bosh.lua
diff --git
a/plugins/mod_bosh.lua
b/plugins/mod_bosh.lua
index 840de72525209d74f5f4a7ad5c71d1fd3e625c33..032b20a82fe2c426289a71a25841cd83401c7b9d 100644
(file)
--- 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];