X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=plugins%2Fmod_bosh.lua;h=a567c605f8e0feb207a7876bdc7ebc95f5afa6e4;hb=bc7858df342295ecba0b5d9ec2b6ea98a9c589f3;hp=408ed37fc5db0b836dc8dda204275611e7cb7a49;hpb=a05c09b7bbf6c4dc3e967136f926e7da1248e666;p=prosody.git diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua index 408ed37f..a567c605 100644 --- a/plugins/mod_bosh.lua +++ b/plugins/mod_bosh.lua @@ -309,6 +309,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];