diff --git a/src/main/java/dev/zontreck/ariaslib/util/DelayedExecutorService.java b/src/main/java/dev/zontreck/ariaslib/util/DelayedExecutorService.java index e6bb258..fb44318 100644 --- a/src/main/java/dev/zontreck/ariaslib/util/DelayedExecutorService.java +++ b/src/main/java/dev/zontreck/ariaslib/util/DelayedExecutorService.java @@ -20,7 +20,7 @@ public class DelayedExecutorService { private static ScheduledThreadPoolExecutor repeater; static{ inst=new DelayedExecutorService(); - repeater = new ScheduledThreadPoolExecutor(2); + repeater = new ScheduledThreadPoolExecutor(16); } private DelayedExecutorService(){} @@ -47,8 +47,6 @@ public class DelayedExecutorService { */ public static void setup() { - stopRepeatingThread(); - repeater = new ScheduledThreadPoolExecutor(16); repeater.scheduleAtFixedRate(new Runnable() { @Override public void run() { @@ -140,7 +138,7 @@ public class DelayedExecutorService { private static void stopRepeatingThread() { repeater.shutdownNow(); - repeater=null; // Dispose of so the threads get torn down and the program can stop successfully + //repeater=null; // Dispose of so the threads get torn down and the program can stop successfully } public void onTick()