aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-12-17 19:00:36 +0000
committerMatthew Wild <mwild1@gmail.com>2009-12-17 19:00:36 +0000
commit7bdb84764c15dcfe23c95a69182e27f033378f24 (patch)
tree2d51c6e1da1584aa25b38a4d01332df28b797454 /net
parente394e2f22252126dcb18dd38300a366e3ad6dba7 (diff)
downloadprosody-7bdb84764c15dcfe23c95a69182e27f033378f24.tar.gz
prosody-7bdb84764c15dcfe23c95a69182e27f033378f24.zip
xmppserver_listener: When a connection fails, pass the reason to destroy_session
Diffstat (limited to 'net')
-rw-r--r--net/xmppserver_listener.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xmppserver_listener.lua b/net/xmppserver_listener.lua
index 37f2470c..4394eac5 100644
--- a/net/xmppserver_listener.lua
+++ b/net/xmppserver_listener.lua
@@ -159,7 +159,7 @@ function xmppserver.disconnect(conn, err)
end
end
(session.log or log)("info", "s2s disconnected: %s->%s (%s)", tostring(session.from_host), tostring(session.to_host), tostring(err));
- s2s_destroy_session(session);
+ s2s_destroy_session(session, err);
sessions[conn] = nil;
session = nil;
collectgarbage("collect");