We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90f395c commit f21c91bCopy full SHA for f21c91b
1 file changed
ice-adapter/src/main/java/com/faforever/iceadapter/util/ExecutorHolder.java
@@ -7,7 +7,6 @@
7
@UtilityClass
8
public class ExecutorHolder {
9
public ExecutorService getExecutor() {
10
- int numberOfCores = Runtime.getRuntime().availableProcessors();
11
- return Executors.newFixedThreadPool(numberOfCores);
+ return Executors.newThreadPerTaskExecutor(Executors.defaultThreadFactory());
12
}
13
0 commit comments