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,