Software /
code /
prosody
Changeset
1890:aed0d8a0cca8
s2smanager: Don't wait for stream:features from non-XMPP-1.0 hosts
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 04 Oct 2009 16:39:57 +0100 |
parents | 1889:e875833ae08e |
children | 1891:fd725a28141d |
files | core/s2smanager.lua |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/core/s2smanager.lua Sun Oct 04 16:38:33 2009 +0100 +++ b/core/s2smanager.lua Sun Oct 04 16:39:57 2009 +0100 @@ -384,10 +384,13 @@ end session.send_buffer = nil; - if not session.dialback_verifying then - initiate_dialback(session); - else - mark_connected(session); + -- If server is pre-1.0, don't wait for features, just do dialback + if session.version < 1.0 then + if not session.dialback_verifying then + initiate_dialback(session); + else + mark_connected(session); + end end end