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
|
@ -181,12 +181,13 @@ public class ElasticSearchClientImpl implements ElasticSearchClientInterface{
|
|||
return response.isFound();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected void finalize() throws Throwable {
|
||||
super.finalize();
|
||||
_log.info("Called finalize.. closing connection to elasticsearch");
|
||||
client.close();
|
||||
if(client != null)
|
||||
client.close();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue