diff --git a/LauncherAPI/src/main/java/pro/gravit/launcher/request/Request.java b/LauncherAPI/src/main/java/pro/gravit/launcher/request/Request.java index a4cd20b0..d5c6fc47 100644 --- a/LauncherAPI/src/main/java/pro/gravit/launcher/request/Request.java +++ b/LauncherAPI/src/main/java/pro/gravit/launcher/request/Request.java @@ -36,7 +36,9 @@ public abstract class Request implements WebSocketRequ public static synchronized void startAutoRefresh() { if(!autoRefreshRunning) { - executorService = Executors.newSingleThreadScheduledExecutor(); + if(executorService == null) { + executorService = Executors.newSingleThreadScheduledExecutor(); + } executorService.scheduleAtFixedRate(() -> { try { restore(false, true);