aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-04-19 17:44:04 +0200
committerKim Alvefur <zash@zash.se>2016-04-19 17:44:04 +0200
commit7ec3aac1af0d965b32e71d760c02cc6a31a99655 (patch)
treec60633ee578cf4f6ea4d531534ee4df7f1d10464 /plugins
parentee3e8bbd38974e1c5c788b06e9002af7eb02fed3 (diff)
downloadprosody-7ec3aac1af0d965b32e71d760c02cc6a31a99655.tar.gz
prosody-7ec3aac1af0d965b32e71d760c02cc6a31a99655.zip
mod_bosh: Don't decrement rid twice (thanks av6)
Diffstat (limited to 'plugins')
-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 d317e4b9..34613cbb 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -275,7 +275,7 @@ function stream_callbacks.streamopened(context, attr)
-- New session
sid = new_uuid();
local session = {
- type = "c2s_unauthed", conn = {}, sid = sid, rid = rid-1, host = attr.to,
+ type = "c2s_unauthed", conn = {}, sid = sid, rid = rid, host = attr.to,
bosh_version = attr.ver, bosh_wait = wait, streamid = sid,
bosh_hold = BOSH_DEFAULT_HOLD, bosh_max_inactive = BOSH_DEFAULT_INACTIVITY,
requests = { }, send_buffer = {}, reset_stream = bosh_reset_stream,