Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b5315a commit 7765c6dCopy full SHA for 7765c6d
1 file changed
javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java
@@ -21,6 +21,7 @@
21
import java.util.Set;
22
import java.util.concurrent.ExecutorService;
23
import java.util.concurrent.Executors;
24
+import java.util.concurrent.TimeUnit;
25
import java.util.stream.Stream;
26
27
import com.semmle.js.extractor.ExtractorConfig.SourceType;
@@ -403,8 +404,14 @@ private void startThreadPool() {
403
404
}
405
406
private void shutdownThreadPool() {
- if (threadPool != null)
407
+ if (threadPool != null) {
408
threadPool.shutdown();
409
+ try {
410
+ threadPool.awaitTermination(365, TimeUnit.DAYS);
411
+ } catch (InterruptedException e) {
412
+ Exceptions.ignore(e, "Awaiting termination is not essential.");
413
+ }
414
415
416
417
/**
0 commit comments