throw security exception instead of going to next srv entry

This commit is contained in:
Daniel Gultsch 2016-01-12 23:42:47 +01:00
parent da298cfe59
commit 3e9fd0185a

View File

@ -306,8 +306,10 @@ public class XmppConnection implements Runnable {
}
}
if(startXmpp())
if (startXmpp())
break; // successfully connected to server that speaks xmpp
} catch(final SecurityException e) {
throw e;
} catch (final Throwable e) {
Log.d(Config.LOGTAG, account.getJid().toBareJid().toString() + ": " + e.getMessage() +"("+e.getClass().getName()+")");
if (!iterator.hasNext()) {