Skip to content

Commit

Permalink
[PJLink] forget threadpool after it was shutdown (#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>
  • Loading branch information
nils committed Dec 28, 2023
1 parent 13a0616 commit b5c2423
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 b5c2423

Please sign in to comment.