Changeset

4576:79c813c4ecc0

s2smanager, mod_s2s: clear up ip_hosts after s2s is marked as established, remove useless space from mod_s2s code
author Marco Cirillo <maranda@lightwitch.org>
date Fri, 24 Feb 2012 18:03:27 +0000
parents 4575:e0c4ac7749a6
children 4577:ed0071f0e230 4578:da0528c59c52
files core/s2smanager.lua plugins/s2s/mod_s2s.lua
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/s2smanager.lua	Fri Feb 24 16:25:45 2012 +0000
+++ b/core/s2smanager.lua	Fri Feb 24 18:03:27 2012 +0000
@@ -134,6 +134,7 @@
 			session.sendq = nil;
 		end
 		
+		session.ip_hosts = nil;
 		session.srv_hosts = nil;
 	end
 end
--- a/plugins/s2s/mod_s2s.lua	Fri Feb 24 16:25:45 2012 +0000
+++ b/plugins/s2s/mod_s2s.lua	Fri Feb 24 18:03:27 2012 +0000
@@ -255,7 +255,7 @@
 		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;
+	sessions[session.conn] = nil;
 	s2s_destroy_session(session, err);
 end