[PJLink] forget threadpool after it was shutdown (#16119)

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>
This commit is contained in:
Nils Schnabel 2023-12-28 11:07:31 +01:00 committed by Thomas Vogl
parent eac0d2564c
commit cc9d0ba420
1 changed files with 1 additions and 0 deletions

View File

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