From a80e3131be975e35c85b3f746cef233fafebaae0 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Thu, 13 Mar 2014 03:52:41 +0100 Subject: contact picture generation centralized + basic registry stuff --- src/eu/siacs/conversations/xmpp/XmppConnection.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/eu/siacs/conversations/xmpp/XmppConnection.java') diff --git a/src/eu/siacs/conversations/xmpp/XmppConnection.java b/src/eu/siacs/conversations/xmpp/XmppConnection.java index 277878ca..d653e06a 100644 --- a/src/eu/siacs/conversations/xmpp/XmppConnection.java +++ b/src/eu/siacs/conversations/xmpp/XmppConnection.java @@ -109,6 +109,7 @@ public class XmppConnection implements Runnable { Log.d(LOGTAG,account.getJid()+ ": connecting"); lastConnect = SystemClock.elapsedRealtime(); try { + shouldAuthenticate = shouldBind = !account.isOptionSet(Account.OPTION_REGISTER); tagReader = new XmlReader(wakeLock); tagWriter = new TagWriter(); packetCallbacks.clear(); @@ -185,6 +186,9 @@ public class XmppConnection implements Runnable { && (!account.isOptionSet(Account.OPTION_USETLS))) { changeStatus(Account.STATUS_SERVER_REQUIRES_TLS); } + if (account.isOptionSet(Account.OPTION_REGISTER)) { + Log.d(LOGTAG,account.getJid()+": trying to register"); + } } else if (nextTag.isStart("proceed")) { switchOverToTls(nextTag); } else if (nextTag.isStart("success")) { -- cgit v1.2.3