Merge pull request #56 from bluecircle/master

Fix bug in loading proxy state from redis when key isn't present.
This commit is contained in:
Matthew Little 2014-04-11 12:54:02 -06:00
commit 467d143bbe
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ module.exports = function(logger){
var redisClient = redis.createClient(6379, "localhost")
redisClient.on('ready', function(){
redisClient.hgetall("proxyState", function(error, obj) {
if (error) {
if (error || obj == null) {
logger.debug(logSystem, logComponent, logSubCat, 'No last proxy state found in redis');
}
else {