diff options
author | Matthew Wild <mwild1@gmail.com> | 2011-06-07 01:29:34 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2011-06-07 01:29:34 +0100 |
commit | 9882dde3a2fa5eb7bc3cd1ceddc584dbe22b0a97 (patch) | |
tree | b14478387b7fa4ac1cf1e954ca9515f983df0291 /plugins/mod_bosh.lua | |
parent | 7fd9641a7de646f0c15a878a53f2b744a3af6e89 (diff) | |
parent | 7c6db5e1b2d8579501981b1010574f0363330d28 (diff) | |
download | prosody-9882dde3a2fa5eb7bc3cd1ceddc584dbe22b0a97.tar.gz prosody-9882dde3a2fa5eb7bc3cd1ceddc584dbe22b0a97.zip |
Merge 0.8->trunk
Diffstat (limited to 'plugins/mod_bosh.lua')
-rw-r--r-- | plugins/mod_bosh.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua index c2c7eae9..a6b84367 100644 --- a/plugins/mod_bosh.lua +++ b/plugins/mod_bosh.lua @@ -125,11 +125,11 @@ function handle_request(method, body, request) local session = sessions[request.sid]; if session then - -- Session was marked as inactive, since we have - -- a request open now, unmark it - if inactive_sessions[session] then - inactive_sessions[session] = nil; - end + -- Session was marked as inactive, since we have + -- a request open now, unmark it + if inactive_sessions[session] and #session.requests > 0 then + inactive_sessions[session] = nil; + end local r = session.requests; log("debug", "Session %s has %d out of %d requests open", request.sid, #r, session.bosh_hold); |