Diff

net/xmppserver_listener.lua @ 2369:fe2819d281d5

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
parent 2256:482bc84c15ea
child 2370:d783c8de379d
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;
 	end