only connect to hosts not already in progress

pull/4/head
Zlatin Balevsky 2018-07-26 12:44:53 +01:00
parent e62bceda29
commit 063357120c
1 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ class ConnectionEstablisher {
} }
if (toTry == null) if (toTry == null)
return return
inProgress.add(toTry) if (inProgress.add(toTry))
executor.execute({connect(toTry)} as Runnable) executor.execute({connect(toTry)} as Runnable)
} }