Changeset

2782:71e6c13f6e08

xmppserver_listener: When a connection fails, pass the reason to destroy_session
author Matthew Wild <mwild1@gmail.com>
date Thu, 17 Dec 2009 19:00:36 +0000
parents 2781:4b5881b6bbfc
children 2783:57611584e27d
files net/xmppserver_listener.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/xmppserver_listener.lua	Thu Dec 17 18:59:29 2009 +0000
+++ b/net/xmppserver_listener.lua	Thu Dec 17 19:00:36 2009 +0000
@@ -159,7 +159,7 @@
 			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");