Software /
code /
prosody
Comparison
core/s2smanager.lua @ 169:92768120b717
Little tweak for more useful logging of closed s2s sessions
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 26 Oct 2008 13:14:14 +0000 |
parent | 167:c51246bc679d |
child | 179:774a172b03c8 |
comparison
equal
deleted
inserted
replaced
168:744fafa8b700 | 169:92768120b717 |
---|---|
173 session.sendq = nil; | 173 session.sendq = nil; |
174 end | 174 end |
175 end | 175 end |
176 | 176 |
177 function destroy_session(session) | 177 function destroy_session(session) |
178 (session.log or log)("info", "Destroying session"); | 178 (session.log or log)("info", "Destroying "..tostring(session.direction).." session "..tostring(session.from_host).."->"..tostring(session.to_host)); |
179 if session.direction == "outgoing" then | 179 if session.direction == "outgoing" then |
180 hosts[session.to_host] = nil; | 180 hosts[session.to_host] = nil; |
181 end | 181 end |
182 session.conn = nil; | 182 session.conn = nil; |
183 session.disconnect = nil; | 183 session.disconnect = nil; |