minor check added
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/social-networking/social-data-search-client@130209 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
fcde545ef5
commit
ab2ee83812
|
@ -186,6 +186,7 @@ public class ElasticSearchClientImpl implements ElasticSearchClientInterface{
|
||||||
protected void finalize() throws Throwable {
|
protected void finalize() throws Throwable {
|
||||||
super.finalize();
|
super.finalize();
|
||||||
_log.info("Called finalize.. closing connection to elasticsearch");
|
_log.info("Called finalize.. closing connection to elasticsearch");
|
||||||
|
if(client != null)
|
||||||
client.close();
|
client.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue