aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_bosh.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-12-13 15:31:21 +0100
committerKim Alvefur <zash@zash.se>2017-12-13 15:31:21 +0100
commit391bc42a2dac401b43042df9865be9fc5845e5db (patch)
tree8f8a92ade2874c5110383e86862a9a68ec554691 /plugins/mod_bosh.lua
parentce9f53bf4896ba949b0a8f84824857389985f601 (diff)
downloadprosody-391bc42a2dac401b43042df9865be9fc5845e5db.tar.gz
prosody-391bc42a2dac401b43042df9865be9fc5845e5db.zip
mod_bosh: Rename variable to avoid name clash [luacheck]
Diffstat (limited to 'plugins/mod_bosh.lua')
-rw-r--r--plugins/mod_bosh.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index 77b69c3e..71be632e 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -465,13 +465,13 @@ function stream_callbacks.streamclosed(context)
if not context.defer and session.bosh_deferred then
-- Handle deferred stanzas now
local deferred_stanzas = session.bosh_deferred;
- local context = deferred_stanzas.context;
+ local deferred_context = deferred_stanzas.context;
session.bosh_deferred = nil;
log("debug", "Handling deferred stanzas from rid %d", deferred_stanzas.rid);
session.rid = deferred_stanzas.rid;
- t_insert(session.requests, context.response);
+ t_insert(session.requests, deferred_context.response);
for _, stanza in ipairs(deferred_stanzas) do
- stream_callbacks.handlestanza(context, stanza);
+ stream_callbacks.handlestanza(deferred_context, stanza);
end
if deferred_stanzas.terminate then
session.bosh_terminate = true;