Skip to content

Commit

Permalink
Merge branch 'master' into fix/spring-aop-issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-sheng committed Nov 19, 2017
2 parents 61c7a35 + d2df4db commit 1c762f1
Showing 1 changed file with 3 additions and 12 deletions.
Expand Up @@ -141,21 +141,12 @@ private HttpGet buildGet() {
*/
private void findBackupServer() {
selectedServer++;
if (selectedServer == serverList.length) {
if (selectedServer >= serverList.length) {
selectedServer = 0;
}
}

/**
* Try to sleep, and ignore the {@link InterruptedException}
*
* @param millis the length of time to sleep in milliseconds
*/
private void try2Sleep(long millis) {
try {
Thread.sleep(millis);
} catch (InterruptedException e) {

if (serverList.length == 0) {
selectedServer = -1;
}
}
}

0 comments on commit 1c762f1

Please sign in to comment.