Diff

plugins/s2s/mod_s2s.lua @ 4593:470f502f02a3

Merge with Maranda
author Matthew Wild <mwild1@gmail.com>
date Thu, 08 Mar 2012 00:18:16 +0000
parent 4591:75b3d0c301d0
parent 4592:0a9528b178fd
child 4601:4007b9f9aa5f
line wrap: on
line diff
--- a/plugins/s2s/mod_s2s.lua	Wed Mar 07 20:11:01 2012 +0000
+++ b/plugins/s2s/mod_s2s.lua	Thu Mar 08 00:18:16 2012 +0000
@@ -280,7 +280,6 @@
 		end
 	end
 	(session.log or log)("info", "s2s disconnected: %s->%s (%s)", tostring(session.from_host), tostring(session.to_host), tostring(err or "closed"));
-	sessions[session.conn] = nil;
 	s2s_destroy_session(session, err);
 end
 
@@ -457,7 +456,7 @@
 			return; -- Connection lives, for now
 		end
 	end
-	sessions[conn]  = nil;
+	sessions[conn] = nil;
 end
 
 function listener.register_outgoing(conn, session)