[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:
parent
eac0d2564c
commit
cc9d0ba420
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue