Changeset

4593:470f502f02a3

Merge with Maranda
author Matthew Wild <mwild1@gmail.com>
date Thu, 08 Mar 2012 00:18:16 +0000
parents 4591:75b3d0c301d0 (current diff) 4592:0a9528b178fd (diff)
children 4596:87a5b7f39100
files plugins/s2s/mod_s2s.lua
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
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)