mirror of https://github.com/zlatinb/muwire
fix assignment
parent
7dd47c6fcb
commit
1ed74768fb
|
@ -80,7 +80,7 @@ class ConnectionEstablisher {
|
|||
def toTry = hostCache.getHosts(1, {!connectionManager.isConnected(it) && !inProgress.contains(it)} as Predicate)
|
||||
if (toTry.isEmpty())
|
||||
return
|
||||
toTry == toTry[0]
|
||||
toTry = toTry[0]
|
||||
if (!connectionManager.isConnected(toTry) && inProgress.add(toTry))
|
||||
executor.execute({connect(toTry)} as Runnable)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue