mirror of https://github.com/zlatinb/muwire
only connect to hosts not already in progress
parent
e62bceda29
commit
063357120c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue