aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-04-12 13:14:45 +0100
committerMatthew Wild <mwild1@gmail.com>2009-04-12 13:14:45 +0100
commit13db2a926bff3a8db904a940db68bcc2afd31405 (patch)
tree17e6c8e666429e27e39bd5f6a4337fc00cde316e
parentcdd063f51696f7bcb39c83d04e159f58595d1790 (diff)
downloadprosody-13db2a926bff3a8db904a940db68bcc2afd31405.tar.gz
prosody-13db2a926bff3a8db904a940db68bcc2afd31405.zip
core.s2smanager: Don't initiate dialback if we don't have a connection yet
-rw-r--r--core/s2smanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index 5f04fed6..cf198cf0 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -77,7 +77,7 @@ function send_to_host(from_host, to_host, data)
-- We have a connection to this host already
if host.type == "s2sout_unauthed" and data.name ~= "db:verify" and ((not data.xmlns) or data.xmlns == "jabber:client" or data.xmlns == "jabber:server") then
(host.log or log)("debug", "trying to send over unauthed s2sout to "..to_host);
- if not host.notopen and not host.dialback_key then
+ if not host.notopen and not host.dialback_key and host.sends2s then
host.log("debug", "dialback had not been initiated");
initiate_dialback(host);
end