Merge 0.9->trunk
authorKim Alvefur <zash@zash.se>
Sun, 02 Jun 2013 19:27:45 +0200
changeset 5640 4f1889672063
parent 5638 c5b7f4858014 (current diff)
parent 5639 7a0e19e649b7 (diff)
child 5641 92ffddd02c96
Merge 0.9->trunk
plugins/mod_bosh.lua
--- a/plugins/mod_bosh.lua	Thu May 30 14:32:40 2013 +0200
+++ b/plugins/mod_bosh.lua	Sun Jun 02 19:27:45 2013 +0200
@@ -346,7 +346,7 @@
 		local features = st.stanza("stream:features");
 		hosts[session.host].events.fire_event("stream-features", { origin = session, features = features });
 		fire_event("stream-features", session, features);
-		table.insert(session.send_buffer, tostring(features));
+		session.send(tostring(features));
 		session.notopen = nil;
 	end
 end