# HG changeset patch # User Matthew Wild # Date 1261085615 0 # Node ID 66ba153d3f09a6294abc795820c4c7cc29705db8 # Parent 78c5cb163ea912b3634ed84ae4c92ff76032c0f7 Backed out changeset 78c5cb163ea9, to fix another way. Haven't done this for a while :) diff -r 78c5cb163ea9 -r 66ba153d3f09 core/s2smanager.lua --- a/core/s2smanager.lua Thu Dec 17 21:17:47 2009 +0000 +++ b/core/s2smanager.lua Thu Dec 17 21:33:35 2009 +0000 @@ -366,7 +366,6 @@ send(""); send(stanza("stream:stream", { xmlns='jabber:server', ["xmlns:db"]='jabber:server:dialback', ["xmlns:stream"]='http://etherx.jabber.org/streams', id=session.streamid, from=session.to_host, version=(session.version > 0 and "1.0" or nil) }):top_tag()); - session.notopen = nil; if session.to_host and not hosts[session.to_host] then -- Attempting to connect to a host we don't serve session:close({ condition = "host-unknown"; text = "This host does not serve "..session.to_host }); @@ -413,6 +412,8 @@ end end end + + session.notopen = nil; end function streamclosed(session)