mirror of https://github.com/zlatinb/muwire
prevent infinite loop if we don't know of any unconnected hosts
parent
fd4ee74079
commit
53fde470ee
|
@ -57,7 +57,7 @@ class ConnectionEstablisher {
|
|||
return
|
||||
|
||||
def toTry
|
||||
while(true) {
|
||||
for (int i = 0; i < 5; i++) {
|
||||
toTry = hostCache.getHosts(1)
|
||||
if (toTry.isEmpty())
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue