Skip to content

Commit cf0a925

Browse files
authored
Fixed bug with thread pool destruction (#72)
1 parent ef16e20 commit cf0a925

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/engineering/swat/watch/DaemonThreadPool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static ExecutorService buildConstrainedCached(String name, int maxThreads
4949
if (maxThreads <= 0) {
5050
throw new IllegalArgumentException("maxThreads should be higher than 0");
5151
}
52-
var pool = new ThreadPoolExecutor(1, maxThreads,
52+
var pool = new ThreadPoolExecutor(maxThreads, maxThreads,
5353
60, TimeUnit.SECONDS,
5454
new LinkedBlockingQueue<>(),
5555
buildFactory(name)

0 commit comments

Comments
 (0)