mod_bosh: Don't decrement rid twice (thanks av6)
authorKim Alvefur <zash@zash.se>
Tue, 19 Apr 2016 15:44:04 +0000 (17:44 +0200)
committerKim Alvefur <zash@zash.se>
Tue, 19 Apr 2016 15:44:04 +0000 (17:44 +0200)
plugins/mod_bosh.lua

index d317e4b97683f1c894ecae60cfd71f3cc5a17db5..34613cbb2837348749551770c968d560228607f0 100644 (file)
@@ -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,