sessionmanager, s2smanager: Destroyed sessions are now simply resting (not dead)...
[prosody.git] / net / xmppserver_listener.lua
index c9746ee1281fe91c4921c7c88646b5576738a14c..8a3886adf3b9d38d71b6b9c36ebe87294056e1cc 100644 (file)
@@ -176,7 +176,7 @@ function xmppserver.ondisconnect(conn, err)
                                return; -- Session lives for now
                        end
                end
-               (session.log or log)("info", "s2s disconnected: %s->%s (%s)", tostring(session.from_host), tostring(session.to_host), tostring(err));
+               (session.log or log)("info", "s2s disconnected: %s->%s (%s)", tostring(session.from_host), tostring(session.to_host), tostring(err or "closed"));
                s2s_destroy_session(session, err);
                sessions[conn]  = nil;
                session = nil;