From 06af7a93e866689c456dcdf685b950f631f6e873 Mon Sep 17 00:00:00 2001 From: Nils Schnabel Date: Tue, 26 Dec 2023 16:08:30 +0000 Subject: [PATCH] [PJLink] restart threadpool if it was shutdown before This is an issue if the user cancels/restarts discovery scans. Signed-off-by: Nils Schnabel --- .../internal/discovery/AbstractDiscoveryParticipant.java | 1 + 1 file changed, 1 insertion(+) diff --git a/bundles/org.openhab.binding.pjlinkdevice/src/main/java/org/openhab/binding/pjlinkdevice/internal/discovery/AbstractDiscoveryParticipant.java b/bundles/org.openhab.binding.pjlinkdevice/src/main/java/org/openhab/binding/pjlinkdevice/internal/discovery/AbstractDiscoveryParticipant.java index 1e9effbdc0d02..48523e232f668 100644 --- a/bundles/org.openhab.binding.pjlinkdevice/src/main/java/org/openhab/binding/pjlinkdevice/internal/discovery/AbstractDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.pjlinkdevice/src/main/java/org/openhab/binding/pjlinkdevice/internal/discovery/AbstractDiscoveryParticipant.java @@ -97,6 +97,7 @@ protected synchronized void stopScan() { Thread.currentThread().interrupt(); // Reset interrupt flag } executorService.shutdown(); + executorService = null; } public static ThingUID createServiceUID(String ip, int tcpPort) {