Skip to content

Commit

Permalink
[PJLink] forget threadpool after it was shutdown
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>
  • Loading branch information
nils committed Dec 26, 2023
1 parent 6540d0d commit 356b123
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 356b123

Please sign in to comment.