From 6aaad6c768a9e5787facd78984d6a906b17af4f1 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 17 Dec 2009 21:33:35 +0000 Subject: Backed out changeset 78c5cb163ea9, to fix another way. Haven't done this for a while :) --- core/s2smanager.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/s2smanager.lua b/core/s2smanager.lua index 1d1e4696..2ea645fb 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -366,7 +366,6 @@ function streamopened(session, attr) 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 @@ function streamopened(session, attr) end end end + + session.notopen = nil; end function streamclosed(session) -- cgit v1.2.3