aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_bosh.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-06-02 19:25:53 +0200
committerKim Alvefur <zash@zash.se>2013-06-02 19:25:53 +0200
commit790162a580320ef2b61e1d1d4553ab8b4465c3d7 (patch)
tree6befacc51a0bed0e1a37eca8dd3263d1f35b02bf /plugins/mod_bosh.lua
parent3e72a6bd92cbf53996010bb574b6c269f59ed336 (diff)
downloadprosody-790162a580320ef2b61e1d1d4553ab8b4465c3d7.tar.gz
prosody-790162a580320ef2b61e1d1d4553ab8b4465c3d7.zip
mod_bosh: Fix traceback in case session is destroyed during the stream-features event (thanks Biszkopcik)
Diffstat (limited to 'plugins/mod_bosh.lua')
-rw-r--r--plugins/mod_bosh.lua2
1 files changed, 1 insertions, 1 deletions
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