]> git.basschouten.com Git - openhab-addons.git/commitdiff
[PJLink] forget threadpool after it was shutdown (#16119)
authorNils Schnabel <nils@users.noreply.github.com>
Thu, 28 Dec 2023 10:07:31 +0000 (11:07 +0100)
committerGitHub <noreply@github.com>
Thu, 28 Dec 2023 10:07:31 +0000 (11:07 +0100)
This is an issue if the user cancels/restarts discovery scans, new tasks were added to the shutdown threadpool.
With this PR, a new threadpool will be created on the next scan in getExecutorService().

Signed-off-by: Nils Schnabel <github@to.nilsschnabel.de>
bundles/org.openhab.binding.pjlinkdevice/src/main/java/org/openhab/binding/pjlinkdevice/internal/discovery/AbstractDiscoveryParticipant.java

index 1e9effbdc0d0241450a6589325e0306eb890ab5b..2d9f09e8330ce4ef8f4095c73dfad275ead93cd1 100644 (file)
@@ -97,6 +97,7 @@ public abstract class AbstractDiscoveryParticipant extends AbstractDiscoveryServ
             Thread.currentThread().interrupt(); // Reset interrupt flag
         }
         executorService.shutdown();
+        this.executorService = null;
     }
 
     public static ThingUID createServiceUID(String ip, int tcpPort) {