Skip to content

Commit d1b8825

Browse files
Hilbrandandrewfg
authored andcommitted
[dsmr] Set Thread name and daemon state (openhab#8325)
Signed-off-by: Hilbrand Bouwkamp <[email protected]>
1 parent eb4695c commit d1b8825

File tree

1 file changed

+2
-0
lines changed
  • bundles/org.openhab.binding.dsmr/src/main/java/org/openhab/binding/dsmr/internal/handler

1 file changed

+2
-0
lines changed

bundles/org.openhab.binding.dsmr/src/main/java/org/openhab/binding/dsmr/internal/handler/DSMRBridgeHandler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ public void initialize() {
149149
this.dsmrDevice = dsmrDevice; // otherwise Eclipse will give a null pointer error on the next line :-(
150150
dsmrDeviceRunnable = new DSMRDeviceRunnable(dsmrDevice, this);
151151
dsmrDeviceThread = new Thread(dsmrDeviceRunnable);
152+
dsmrDeviceThread.setName("OH-binding-" + getThing().getUID());
153+
dsmrDeviceThread.setDaemon(true);
152154
dsmrDeviceThread.start();
153155
watchdog = scheduler.scheduleWithFixedDelay(this::alive, receivedTimeoutNanos, receivedTimeoutNanos,
154156
TimeUnit.NANOSECONDS);

0 commit comments

Comments
 (0)