prevent infinite loop if we don't know of any unconnected hosts
This commit is contained in:
@@ -57,7 +57,7 @@ class ConnectionEstablisher {
|
|||||||
return
|
return
|
||||||
|
|
||||||
def toTry
|
def toTry
|
||||||
while(true) {
|
for (int i = 0; i < 5; i++) {
|
||||||
toTry = hostCache.getHosts(1)
|
toTry = hostCache.getHosts(1)
|
||||||
if (toTry.isEmpty())
|
if (toTry.isEmpty())
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user