mirror of https://github.com/zlatinb/muwire
only connect to hosts not already in progress
parent
e62bceda29
commit
063357120c
|
@ -78,7 +78,7 @@ class ConnectionEstablisher {
|
|||
}
|
||||
if (toTry == null)
|
||||
return
|
||||
inProgress.add(toTry)
|
||||
if (inProgress.add(toTry))
|
||||
executor.execute({connect(toTry)} as Runnable)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue