changeset 2806:93a4b13ca9f6

mod_firewall/test: Use session passed as argument instead of upvalue
author Kim Alvefur <zash@zash.se>
date Fri, 20 Oct 2017 02:51:38 +0200
parents 2afbb7d47905
children 2c3334131a7d
files mod_firewall/test.lib.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_firewall/test.lib.lua	Fri Oct 20 02:49:34 2017 +0200
+++ b/mod_firewall/test.lib.lua	Fri Oct 20 02:51:38 2017 +0200
@@ -30,7 +30,7 @@
 	local session = { notopen = true };
 	local stream_callbacks = { default_ns = "jabber:client" };
 	
-	function stream_callbacks.streamopened()
+	function stream_callbacks.streamopened(session)
 		session.notopen = nil;
 	end
 	function stream_callbacks.streamclosed()