diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-10-21 20:13:06 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-10-21 20:13:06 +0200 |
commit | 63704b114c858e45cbbd765e713f6fea76fd1595 (patch) | |
tree | 85a01da378042aea9229dc3f69eb10de900d0d41 /src/eu | |
parent | 3821a726440eb880164d1cc2d61ce3a7715f0ddb (diff) |
throw exception when no servers are left to try
Diffstat (limited to 'src/eu')
-rw-r--r-- | src/eu/siacs/conversations/xmpp/XmppConnection.java | 6 |
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; + } } } } |