diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-08-01 01:03:53 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-08-01 01:03:53 +0100 |
commit | 05ea6e679801a4c786e37be1fa559ade89808698 (patch) | |
tree | 07e0efaaf4cb22a3d566926c91d8c2aab168f5f7 | |
parent | 41be7b556978dad20c01330335d2c584cb328017 (diff) | |
download | prosody-05ea6e679801a4c786e37be1fa559ade89808698.tar.gz prosody-05ea6e679801a4c786e37be1fa559ade89808698.zip |
mod_bosh: Remove redundant code (send stream features in only one place) (thanks Zash)
-rw-r--r-- | plugins/mod_bosh.lua | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua index f31db684..350d6b0c 100644 --- a/plugins/mod_bosh.lua +++ b/plugins/mod_bosh.lua @@ -246,7 +246,7 @@ function stream_callbacks.streamopened(context, attr) bosh_version = attr.ver, bosh_wait = attr.wait, streamid = sid, bosh_hold = BOSH_DEFAULT_HOLD, bosh_max_inactive = BOSH_DEFAULT_INACTIVITY, requests = { }, send_buffer = {}, reset_stream = bosh_reset_stream, - close = bosh_close_stream, dispatch_stanza = core_process_stanza, + close = bosh_close_stream, dispatch_stanza = core_process_stanza, notopen = true, log = logger.init("bosh"..sid), secure = consider_bosh_secure or request.secure, ip = get_ip_from_request(request); }; @@ -257,10 +257,6 @@ function stream_callbacks.streamopened(context, attr) -- Send creation response local creating_session = true; - 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)); local r = session.requests; function session.send(s) |