throw exception when no servers are left to try

This commit is contained in:
iNPUTmice 2014-10-21 20:13:06 +02:00
parent 3821a72644
commit 63704b114c

View File

@ -185,8 +185,14 @@ public class XmppConnection implements Runnable {
socketError = false; socketError = false;
} catch (UnknownHostException e) { } catch (UnknownHostException e) {
srvIndex++; srvIndex++;
if (!namePort.containsKey("name" + srvIndex)) {
throw e;
}
} catch (IOException e) { } catch (IOException e) {
srvIndex++; srvIndex++;
if (!namePort.containsKey("name" + srvIndex)) {
throw e;
}
} }
} }
} }