only connect to hosts not already in progress
This commit is contained in:
@@ -78,8 +78,8 @@ class ConnectionEstablisher {
|
||||
}
|
||||
if (toTry == null)
|
||||
return
|
||||
inProgress.add(toTry)
|
||||
executor.execute({connect(toTry)} as Runnable)
|
||||
if (inProgress.add(toTry))
|
||||
executor.execute({connect(toTry)} as Runnable)
|
||||
}
|
||||
|
||||
private void connect(Destination toTry) {
|
||||
|
Reference in New Issue
Block a user