Skip to content

Commit f21c91b

Browse files
GodFuperBrutus5000
authored andcommitted
Change executor
1 parent 90f395c commit f21c91b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ice-adapter/src/main/java/com/faforever/iceadapter/util/ExecutorHolder.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
@UtilityClass
88
public class ExecutorHolder {
99
public ExecutorService getExecutor() {
10-
int numberOfCores = Runtime.getRuntime().availableProcessors();
11-
return Executors.newFixedThreadPool(numberOfCores);
10+
return Executors.newThreadPerTaskExecutor(Executors.defaultThreadFactory());
1211
}
1312
}

0 commit comments

Comments
 (0)