// This isn't good, the Jedis object is not thread safe
public void shutdown() {
		    try {
				LOGGER.info("Shutting down listener on " + host + ":" + port);
				running.set(false);
				// This isn't good, the Jedis object is not thread safe
				jedis.disconnect();
		    } catch (Exception e) {
		    	LOGGER.error("Caught exception while shutting down: " + e.getMessage());
		    }
		}
LOGGER.info("Shutting down listener on " + host + ":" + port);
running.set(false);
// This isn't good, the Jedis object is not thread safe
jedis.disconnect();
} catch (Exception e) {
public void shutdown() {
try {
LOGGER.info("Shutting down listener on " + host + ":" + port);
running.set(false);
// This isn't good, the Jedis object is not thread safe
jedis.disconnect();
} catch (Exception e) {
LOGGER.error("Caught exception while shutting down: " + e.getMessage());
}
}
public void shutdown() {
try {
LOGGER.info("Shutting down listener on " + host + ":" + port);
running.set(false);
// This isn't good, the Jedis object is not thread safe
jedis.disconnect();
} catch (Exception e) {
LOGGER.error("Caught exception while shutting down: " + e.getMessage());
}
}