Skip to content

Commit

Permalink
fix: await resolving dependencies manually
Browse files Browse the repository at this point in the history
  • Loading branch information
teletha committed Sep 30, 2024
1 parent f9137a5 commit 16ea1d6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/main/java/bee/api/FastScanner.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import java.util.Collections;
import java.util.List;
import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.TimeUnit;

import javax.inject.Named;

Expand Down Expand Up @@ -47,6 +46,7 @@
import org.eclipse.aether.version.Version;

import bee.util.Profiling;
import kiss.I;

/**
* Enable parallel dependency requests.
Expand Down Expand Up @@ -79,7 +79,13 @@ protected void doCollectDependencies(RepositorySystemSession session, RequestTra

process(args, dependencies, repositories, selector, manager, traverser, filter, node);

args.fork.awaitQuiescence(60, TimeUnit.SECONDS);
while (!args.fork.isQuiescent()) {
try {
Thread.sleep(100);
} catch (InterruptedException e) {
throw I.quiet(e);
}
}
}
}

Expand Down

0 comments on commit 16ea1d6

Please sign in to comment.