From 6c243c90dd47aa272fbcaab3fc5572f937dbb416 Mon Sep 17 00:00:00 2001 From: Martin Grzeslowski Date: Sun, 24 Mar 2019 22:05:09 +0100 Subject: [PATCH] Use `THREAD_POOL_NAME` as name of thread pool --- .../org/openhab/binding/supla/handler/CloudBridgeHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/binding/org.openhab.binding.supla/src/main/java/org/openhab/binding/supla/handler/CloudBridgeHandler.java b/addons/binding/org.openhab.binding.supla/src/main/java/org/openhab/binding/supla/handler/CloudBridgeHandler.java index 321701b16eede..616ff8511936c 100644 --- a/addons/binding/org.openhab.binding.supla/src/main/java/org/openhab/binding/supla/handler/CloudBridgeHandler.java +++ b/addons/binding/org.openhab.binding.supla/src/main/java/org/openhab/binding/supla/handler/CloudBridgeHandler.java @@ -35,6 +35,7 @@ import static org.openhab.binding.supla.SuplaBindingConstants.API_VERSION_CHANNEL_ID; import static org.openhab.binding.supla.SuplaBindingConstants.CLOUD_VERSION_CHANNEL_ID; import static org.openhab.binding.supla.SuplaBindingConstants.O_AUTH_TOKEN; +import static org.openhab.binding.supla.SuplaBindingConstants.THREAD_POOL_NAME; import static org.openhab.binding.supla.internal.cloud.ApiClientFactory.FACTORY; public class CloudBridgeHandler extends BaseBridgeHandler { @@ -91,7 +92,7 @@ private void internalInitialize() throws ApiException { return; } - final ScheduledExecutorService scheduledPool = ThreadPoolManager.getScheduledPool("cloud-bridge-refresh-children"); + final ScheduledExecutorService scheduledPool = ThreadPoolManager.getScheduledPool(THREAD_POOL_NAME); final int refreshInterval = ((BigDecimal) config.get("refreshInterval")).intValue(); this.scheduledFuture = scheduledPool.scheduleAtFixedRate( this::refreshCloudDevices,