aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-01-12 23:42:47 +0100
committerDaniel Gultsch <daniel@gultsch.de>2016-01-12 23:42:47 +0100
commit3e9fd0185a792b349ce2f8b9e8b6a5967c16fee0 (patch)
tree665732ed314fd862e4d73528b36974fa7d5c9fc9 /src
parentda298cfe5937d9e4ea735f0ed50a5a5d61b9f235 (diff)
throw security exception instead of going to next srv entry
Diffstat (limited to 'src')
-rw-r--r--src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java b/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java
index 01150b32..edab0e21 100644
--- a/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java
+++ b/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java
@@ -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()) {