Changeset

8491:f134be08a499

mod_bosh: Rename variable to avoid name clash [luacheck]
author Kim Alvefur <zash@zash.se>
date Wed, 13 Dec 2017 15:31:21 +0100
parents 8490:7540019afcd8
children 8492:2dd07828ede1
files plugins/mod_bosh.lua
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_bosh.lua	Wed Dec 13 15:30:37 2017 +0100
+++ b/plugins/mod_bosh.lua	Wed Dec 13 15:31:21 2017 +0100
@@ -465,13 +465,13 @@
 		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;