diff options
author | Matthew Wild <mwild1@gmail.com> | 2016-09-07 19:33:14 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2016-09-07 19:33:14 +0100 |
commit | be23c86153168e94b567f6d6a5da9bf282f7b9b7 (patch) | |
tree | 1857990266cbbb0ea2050db25290aeaee0419b54 /plugins | |
parent | dd19060f7b29e86a934540259f1387655e910fdb (diff) | |
parent | 8460485ee0ab18d480d45d427445e2862c21c3d6 (diff) | |
download | prosody-be23c86153168e94b567f6d6a5da9bf282f7b9b7.tar.gz prosody-be23c86153168e94b567f6d6a5da9bf282f7b9b7.zip |
Merge 0.10->trunk
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_bosh.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua index 1a5d3904..8d83ecd6 100644 --- a/plugins/mod_bosh.lua +++ b/plugins/mod_bosh.lua @@ -366,7 +366,8 @@ function stream_callbacks.streamopened(context, attr) body_attr["xmlns:xmpp"] = "urn:xmpp:xbosh"; body_attr["xmpp:version"] = "1.0"; end - oldest_request:send(st.stanza("body", body_attr):top_tag()..t_concat(session.send_buffer).."</body>"); + session.bosh_last_response = st.stanza("body", body_attr):top_tag()..t_concat(session.send_buffer).."</body>"; + oldest_request:send(session.bosh_last_response); session.send_buffer = {}; end return true; |