Skip to content

Commit

Permalink
[PJLink] forget threadpool after it was shutdown (openhab#16119)
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
  • Loading branch information
nils authored and austvik committed Mar 27, 2024
1 parent 3acf669 commit 79d61e4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ protected synchronized void stopScan() {
Thread.currentThread().interrupt(); // Reset interrupt flag
}
executorService.shutdown();
this.executorService = null;
}

public static ThingUID createServiceUID(String ip, int tcpPort) {
Expand Down

0 comments on commit 79d61e4

Please sign in to comment.