From aba2f101dcfb8b9a35a0d3f0a3ca5beff8abeac8 Mon Sep 17 00:00:00 2001 From: Zontreck Date: Sun, 18 Feb 2024 09:18:18 -0700 Subject: [PATCH] Attempt to fix a null error --- .../dev/zontreck/ariaslib/util/DelayedExecutorService.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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()