From 280227fdb28ce774b5e838f5db18da985710ebd8 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 2 Jun 2013 19:25:53 +0200 Subject: mod_bosh: Fix traceback in case session is destroyed during the stream-features event (thanks Biszkopcik) --- plugins/mod_bosh.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua index 19f191c8..184da321 100644 --- a/plugins/mod_bosh.lua +++ b/plugins/mod_bosh.lua @@ -345,7 +345,7 @@ function stream_callbacks.streamopened(context, attr) 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 -- cgit v1.2.3