From 1d4837f5e0ff6e6c3e3f85b06cfd1a83fbd0cb61 Mon Sep 17 00:00:00 2001 From: Nicolas Znamenski Date: Sun, 22 Sep 2019 18:15:27 -0400 Subject: [PATCH] Finished moving thread pool size to config --- .../src/main/java/org/geysermc/connector/GeyserConnector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connector/src/main/java/org/geysermc/connector/GeyserConnector.java b/connector/src/main/java/org/geysermc/connector/GeyserConnector.java index 0f2819f2..6cede858 100644 --- a/connector/src/main/java/org/geysermc/connector/GeyserConnector.java +++ b/connector/src/main/java/org/geysermc/connector/GeyserConnector.java @@ -105,7 +105,6 @@ public class GeyserConnector implements Connector { instance = this; - this.generalThreadPool = Executors.newScheduledThreadPool(32); this.logger = GeyserLogger.DEFAULT; logger.info("******************************************"); @@ -123,6 +122,7 @@ public class GeyserConnector implements Connector { shutdown(); } + this.generalThreadPool = Executors.newScheduledThreadPool(config.getGeneralThreadPool()); ConsoleCommandReader consoleReader = new ConsoleCommandReader(this); consoleReader.startConsole();