Software /
code /
prosody
Comparison
net/xmppserver_listener.lua @ 2782:71e6c13f6e08
xmppserver_listener: When a connection fails, pass the reason to destroy_session
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 17 Dec 2009 19:00:36 +0000 |
parent | 2779:87b66be6d514 |
child | 2877:1edeb8fe7d14 |
comparison
equal
deleted
inserted
replaced
2781:4b5881b6bbfc | 2782:71e6c13f6e08 |
---|---|
157 (session.log or log)("debug", "...so we're going to try another target"); | 157 (session.log or log)("debug", "...so we're going to try another target"); |
158 return; -- Session lives for now | 158 return; -- Session lives for now |
159 end | 159 end |
160 end | 160 end |
161 (session.log or log)("info", "s2s disconnected: %s->%s (%s)", tostring(session.from_host), tostring(session.to_host), tostring(err)); | 161 (session.log or log)("info", "s2s disconnected: %s->%s (%s)", tostring(session.from_host), tostring(session.to_host), tostring(err)); |
162 s2s_destroy_session(session); | 162 s2s_destroy_session(session, err); |
163 sessions[conn] = nil; | 163 sessions[conn] = nil; |
164 session = nil; | 164 session = nil; |
165 collectgarbage("collect"); | 165 collectgarbage("collect"); |
166 end | 166 end |
167 end | 167 end |