aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commitccbc34690055daba780e791ca99c7a3aaec841f1 (patch)
tree8f8a92ade2874c5110383e86862a9a68ec554691 /plugins
parent94c9012f75b6381d70b3fe71fb4ec3485dbd6e8f (diff)
downloadprosody-ccbc34690055daba780e791ca99c7a3aaec841f1.tar.gz
prosody-ccbc34690055daba780e791ca99c7a3aaec841f1.zip
mod_bosh: Rename variable to avoid name clash [luacheck]
Diffstat (limited to 'plugins')
-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;