Skip to content

Commit

Permalink
[ issue #14 ] small fix on SolrClientShutdownHook
Browse files Browse the repository at this point in the history
  • Loading branch information
agazzarini committed Oct 24, 2014
1 parent cd527fb commit b4739cb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@
*/
public class SolrClientShutdownHook implements ClientShutdownHook {
private static final Log LOGGER = new Log(LoggerFactory.getLogger(ClientShutdownHook.class));
private final SolrServer connection;
private final SolrServer facade;

/**
* Builds a new SOLR Client shutdown hook.
*
* @param connection the connection to SOLR.
*/
public SolrClientShutdownHook(final SolrServer connection) {
this.connection = connection;
this.facade = connection;
}

@Override
public void close() {
try {
connection.shutdown();
facade.shutdown();
} catch (final Exception exception) {
LOGGER.error(MessageCatalog._00099_CLIENT_SHUTDOWN_FAILURE, exception);
}
Expand Down

0 comments on commit b4739cb

Please sign in to comment.