avoid deadlocks on spotty connections, fix https://github.com/sbt/sbt/issues/3738

This commit is contained in:
OlegYch 2018-01-18 16:04:37 +03:00 committed by Dale Wijnand
parent 01bb0bd7dd
commit 86c59d8f72
No known key found for this signature in database
GPG Key ID: 4F256E3D151DF5EF
1 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,9 @@ private[sbt] class ParallelResolveEngine(settings: ResolveEngineSettings,
val allDownloads = dependencies.par.flatMap { dep =>
if (!(dep.isCompletelyEvicted || dep.hasProblem) &&
dep.getModuleRevision != null) {
ParArray(downloadNodeArtifacts(dep, artifactFilter, options))
scala.concurrent.blocking {
ParArray(downloadNodeArtifacts(dep, artifactFilter, options))
}
} else ParArray.empty[DownloadResult]
}