From cf65e5a25fa5ca72c9442f316cc8bfe8b9cd6fb3 Mon Sep 17 00:00:00 2001 From: lolodomo Date: Sat, 1 Aug 2020 14:55:52 +0200 Subject: [PATCH] [rfxcom] Thread name format updated (#8237) Related to #8216 Signed-off-by: Laurent Garnier --- .../binding/rfxcom/internal/RFXComBindingConstants.java | 2 -- .../binding/rfxcom/internal/handler/RFXComBridgeHandler.java | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/bundles/org.openhab.binding.rfxcom/src/main/java/org/openhab/binding/rfxcom/internal/RFXComBindingConstants.java b/bundles/org.openhab.binding.rfxcom/src/main/java/org/openhab/binding/rfxcom/internal/RFXComBindingConstants.java index 8776fa83c9dfa..e5b5beb82d423 100644 --- a/bundles/org.openhab.binding.rfxcom/src/main/java/org/openhab/binding/rfxcom/internal/RFXComBindingConstants.java +++ b/bundles/org.openhab.binding.rfxcom/src/main/java/org/openhab/binding/rfxcom/internal/RFXComBindingConstants.java @@ -242,6 +242,4 @@ public class RFXComBindingConstants { put(PacketType.WIND, RFXComBindingConstants.THING_TYPE_WIND); } }); - - public static final String THREAD_NAME_PREFIX = "OH-" + BINDING_ID + "-"; } diff --git a/bundles/org.openhab.binding.rfxcom/src/main/java/org/openhab/binding/rfxcom/internal/handler/RFXComBridgeHandler.java b/bundles/org.openhab.binding.rfxcom/src/main/java/org/openhab/binding/rfxcom/internal/handler/RFXComBridgeHandler.java index d7a29297f05a7..fec7e4628c370 100644 --- a/bundles/org.openhab.binding.rfxcom/src/main/java/org/openhab/binding/rfxcom/internal/handler/RFXComBridgeHandler.java +++ b/bundles/org.openhab.binding.rfxcom/src/main/java/org/openhab/binding/rfxcom/internal/handler/RFXComBridgeHandler.java @@ -31,7 +31,6 @@ import org.eclipse.smarthome.core.util.HexUtils; import org.eclipse.smarthome.io.transport.serial.SerialPortManager; import org.openhab.binding.rfxcom.internal.DeviceMessageListener; -import org.openhab.binding.rfxcom.internal.RFXComBindingConstants; import org.openhab.binding.rfxcom.internal.config.RFXComBridgeConfiguration; import org.openhab.binding.rfxcom.internal.connector.RFXComConnectorInterface; import org.openhab.binding.rfxcom.internal.connector.RFXComEventListener; @@ -170,7 +169,7 @@ private synchronized void connect() { logger.debug("Connecting to RFXCOM transceiver"); try { - String readerThreadName = RFXComBindingConstants.THREAD_NAME_PREFIX + getThing().getUID().getAsString(); + String readerThreadName = "OH-binding-" + getThing().getUID().getAsString(); if (configuration.serialPort != null) { if (connector == null) { connector = new RFXComSerialConnector(serialPortManager, readerThreadName);