# HG changeset patch # User Kim Alvefur # Date 1461080644 -7200 # Node ID addd041342bd00ecf034c1d2ba0a52c006ed6a0f # Parent 17929cdacec282696a0e8bad4476b8d0e0f1a4b5 mod_bosh: Don't decrement rid twice (thanks av6) diff -r 17929cdacec2 -r addd041342bd plugins/mod_bosh.lua --- a/plugins/mod_bosh.lua Tue Apr 19 17:30:30 2016 +0200 +++ b/plugins/mod_bosh.lua Tue Apr 19 17:44:04 2016 +0200 @@ -275,7 +275,7 @@ -- 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,