mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
only close client if it was started
This commit is contained in:
parent
77b6d1d8b8
commit
747aa2e30a
@ -85,6 +85,8 @@ public class AwsEc2Service extends AbstractLifecycleComponent<AwsEc2Service> {
|
||||
}
|
||||
|
||||
@Override protected void doClose() throws ElasticSearchException {
|
||||
client.shutdown();
|
||||
if (client != null) {
|
||||
client.shutdown();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user