aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_c2s.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-05-26 19:41:58 +0200
committerKim Alvefur <zash@zash.se>2019-05-26 19:41:58 +0200
commit31db616162d82f7a4dc5f7f496cd95c19cbd5918 (patch)
tree11a618b505748faf115684e27aa45b2a622e80a9 /plugins/mod_c2s.lua
parent5c927a37de1ce01b20970e5245959c1c41a85b3f (diff)
parent069408d15861035e9da8052068c60939be938ab3 (diff)
downloadprosody-31db616162d82f7a4dc5f7f496cd95c19cbd5918.tar.gz
prosody-31db616162d82f7a4dc5f7f496cd95c19cbd5918.zip
Merge 0.11->trunk
Diffstat (limited to 'plugins/mod_c2s.lua')
-rw-r--r--plugins/mod_c2s.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_c2s.lua b/plugins/mod_c2s.lua
index 7c6d95f7..bfec1055 100644
--- a/plugins/mod_c2s.lua
+++ b/plugins/mod_c2s.lua
@@ -245,7 +245,6 @@ end
--- Port listener
function listener.onconnect(conn)
local session = sm_new_session(conn);
- sessions[conn] = session;
session.log("info", "Client connected");
@@ -306,6 +305,8 @@ function listener.onconnect(conn)
end
session.dispatch_stanza = stream_callbacks.handlestanza;
+
+ sessions[conn] = session;
end
function listener.onincoming(conn, data)