Diff

plugins/mod_c2s.lua @ 10017:994cccebb597

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Sun, 26 May 2019 19:41:58 +0200
parent 9910:7a703af90c9c
parent 10013:62d8689beafb
child 10111:0f335815244f
line wrap: on
line diff
--- a/plugins/mod_c2s.lua	Mon May 13 12:00:28 2019 +0200
+++ b/plugins/mod_c2s.lua	Sun May 26 19:41:58 2019 +0200
@@ -245,7 +245,6 @@
 --- Port listener
 function listener.onconnect(conn)
 	local session = sm_new_session(conn);
-	sessions[conn] = session;
 
 	session.log("info", "Client connected");
 
@@ -306,6 +305,8 @@
 	end
 
 	session.dispatch_stanza = stream_callbacks.handlestanza;
+
+	sessions[conn] = session;
 end
 
 function listener.onincoming(conn, data)