From 4e98bf9c045032b78131d4e6a7a214972d1c5331 Mon Sep 17 00:00:00 2001 From: Jamie Sinn Date: Mon, 30 Sep 2024 17:00:02 -0400 Subject: [PATCH] use setupscheduler --- .../sdk/server/local/managers/EnvironmentConfigManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/devcycle/sdk/server/local/managers/EnvironmentConfigManager.java b/src/main/java/com/devcycle/sdk/server/local/managers/EnvironmentConfigManager.java index 288ea65..49ee6c4 100644 --- a/src/main/java/com/devcycle/sdk/server/local/managers/EnvironmentConfigManager.java +++ b/src/main/java/com/devcycle/sdk/server/local/managers/EnvironmentConfigManager.java @@ -129,7 +129,7 @@ private Void handleSSEStarted(StartedEvent startedEvent) { isSSEConnected = true; DevCycleLogger.debug("SSE Connected - setting polling interval to " + pollingIntervalSSEMS); scheduler.close(); - scheduler = Executors.newScheduledThreadPool(1, new DaemonThreadFactory()); + scheduler = setupScheduler(); scheduler.scheduleAtFixedRate(getConfigRunnable, 0, pollingIntervalSSEMS, TimeUnit.MILLISECONDS); return null; }