mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 01:19:02 +00:00
check if the scheduled thread pool is not terminated when trying to terminate it
This commit is contained in:
parent
9f72a8d68b
commit
5f25ae4f2f
@ -99,7 +99,7 @@ public abstract class AbstractThreadPool extends AbstractComponent implements Th
|
||||
if (!executorService.isTerminated()) {
|
||||
executorService.shutdownNow();
|
||||
}
|
||||
if (!executorService.isTerminated()) {
|
||||
if (!scheduledExecutorService.isTerminated()) {
|
||||
scheduledExecutorService.shutdownNow();
|
||||
}
|
||||
if (!cached.isTerminated()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user