fix assignment

pull/53/head
Zlatin Balevsky 2020-10-18 19:48:45 +01:00
parent 7dd47c6fcb
commit 1ed74768fb
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}