mirror of https://github.com/sbt/sbt.git
Merge pull request #204 from OlegYch/fix-deadlock
avoid deadlocks on spotty connections
This commit is contained in:
commit
2c6e38829f
5
ivy/src/main/scala/sbt/internal/librarymanagement/ivyint/ParallelResolveEngine.scala
Normal file → Executable file
5
ivy/src/main/scala/sbt/internal/librarymanagement/ivyint/ParallelResolveEngine.scala
Normal file → Executable file
|
|
@ -38,7 +38,10 @@ 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))
|
||||
//don't block in global ec to avoid deadlocks
|
||||
scala.concurrent.blocking {
|
||||
ParArray(downloadNodeArtifacts(dep, artifactFilter, options))
|
||||
}
|
||||
} else ParArray.empty[DownloadResult]
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue