From d1b8825886fe372176c871876889462b2b0f8c7f Mon Sep 17 00:00:00 2001 From: Hilbrand Bouwkamp Date: Fri, 21 Aug 2020 18:39:08 +0200 Subject: [PATCH] [dsmr] Set Thread name and daemon state (#8325) Signed-off-by: Hilbrand Bouwkamp --- .../binding/dsmr/internal/handler/DSMRBridgeHandler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bundles/org.openhab.binding.dsmr/src/main/java/org/openhab/binding/dsmr/internal/handler/DSMRBridgeHandler.java b/bundles/org.openhab.binding.dsmr/src/main/java/org/openhab/binding/dsmr/internal/handler/DSMRBridgeHandler.java index fe412e5b9cae8..7cf2542411dcc 100644 --- a/bundles/org.openhab.binding.dsmr/src/main/java/org/openhab/binding/dsmr/internal/handler/DSMRBridgeHandler.java +++ b/bundles/org.openhab.binding.dsmr/src/main/java/org/openhab/binding/dsmr/internal/handler/DSMRBridgeHandler.java @@ -149,6 +149,8 @@ public void initialize() { this.dsmrDevice = dsmrDevice; // otherwise Eclipse will give a null pointer error on the next line :-( dsmrDeviceRunnable = new DSMRDeviceRunnable(dsmrDevice, this); dsmrDeviceThread = new Thread(dsmrDeviceRunnable); + dsmrDeviceThread.setName("OH-binding-" + getThing().getUID()); + dsmrDeviceThread.setDaemon(true); dsmrDeviceThread.start(); watchdog = scheduler.scheduleWithFixedDelay(this::alive, receivedTimeoutNanos, receivedTimeoutNanos, TimeUnit.NANOSECONDS);