mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-25 02:02:16 -05:00
throw exception when no servers are left to try
This commit is contained in:
parent
3821a72644
commit
63704b114c
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user