Merge 0.10->trunk
[prosody.git] / plugins / mod_bosh.lua
index 408ed37fc5db0b836dc8dda204275611e7cb7a49..a567c605f8e0feb207a7876bdc7ebc95f5afa6e4 100644 (file)
@@ -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];