diff options
author | Kim Alvefur <zash@zash.se> | 2019-01-10 13:32:57 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-01-10 13:32:57 +0100 |
commit | b92440bc248c28d0fd49cb0199b6e74aab967d00 (patch) | |
tree | eca18db5a8517d12f44d7b07b1453ce03594a879 /plugins/mod_bosh.lua | |
parent | d999fb613c4d14fce7c8e44e884519cdc686748f (diff) | |
parent | f4dc2fc86f9e0a28747475fd680d3ccc12f3a453 (diff) | |
download | prosody-b92440bc248c28d0fd49cb0199b6e74aab967d00.tar.gz prosody-b92440bc248c28d0fd49cb0199b6e74aab967d00.zip |
Merge 0.11->trunk
Diffstat (limited to 'plugins/mod_bosh.lua')
-rw-r--r-- | plugins/mod_bosh.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua index 251ef740..d4701148 100644 --- a/plugins/mod_bosh.lua +++ b/plugins/mod_bosh.lua @@ -277,7 +277,7 @@ function stream_callbacks.streamopened(context, attr) response:send(tostring(close_reply)); return; end - if not rid or (not wait and attr.wait or wait < 0 or wait % 1 ~= 0) then + if not rid or (not attr.wait or not wait or wait < 0 or wait % 1 ~= 0) then log("debug", "BOSH client sent invalid rid or wait attributes: rid=%s, wait=%s", tostring(attr.rid), tostring(attr.wait)); local close_reply = st.stanza("body", { xmlns = xmlns_bosh, type = "terminate", ["xmlns:stream"] = xmlns_streams, condition = "bad-request" }); |