aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-10-21 20:13:06 +0200
committeriNPUTmice <daniel@gultsch.de>2014-10-21 20:13:06 +0200
commit63704b114c858e45cbbd765e713f6fea76fd1595 (patch)
tree85a01da378042aea9229dc3f69eb10de900d0d41 /src/eu/siacs
parent3821a726440eb880164d1cc2d61ce3a7715f0ddb (diff)
throw exception when no servers are left to try
Diffstat (limited to 'src/eu/siacs')
-rw-r--r--src/eu/siacs/conversations/xmpp/XmppConnection.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/xmpp/XmppConnection.java b/src/eu/siacs/conversations/xmpp/XmppConnection.java
index ffa438bd..2a72f4c2 100644
--- a/src/eu/siacs/conversations/xmpp/XmppConnection.java
+++ b/src/eu/siacs/conversations/xmpp/XmppConnection.java
@@ -185,8 +185,14 @@ public class XmppConnection implements Runnable {
socketError = false;
} catch (UnknownHostException e) {
srvIndex++;
+ if (!namePort.containsKey("name" + srvIndex)) {
+ throw e;
+ }
} catch (IOException e) {
srvIndex++;
+ if (!namePort.containsKey("name" + srvIndex)) {
+ throw e;
+ }
}
}
}