xmppserver_listener: More forcefully close s2s connections (fixes fd leak)

This commit is contained in:
Matthew Wild 2009-10-14 14:07:50 +01:00
parent 3967579413
commit 1fe62686b1

View file

@ -99,6 +99,9 @@ local function session_close(session, reason)
end
end
session.sends2s("</stream:stream>");
if sesson.notopen or not session.conn.close() then
session.conn.close(true); -- Force FIXME: timer?
end
session.conn.close();
xmppserver.disconnect(session.conn, "stream error");
end