# HG changeset patch # User Marco Cirillo # Date 1330106607 0 # Node ID 79c813c4ecc0b0e44cc15ecc451bdd78787ee135 # Parent e0c4ac7749a60eccbe7962577671ce3d1519f31d s2smanager, mod_s2s: clear up ip_hosts after s2s is marked as established, remove useless space from mod_s2s code diff -r e0c4ac7749a6 -r 79c813c4ecc0 core/s2smanager.lua --- 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 diff -r e0c4ac7749a6 -r 79c813c4ecc0 plugins/s2s/mod_s2s.lua --- 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