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

@ -308,6 +308,8 @@ public class XmppConnection implements Runnable {
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()) {