mirror of https://github.com/BTCPrivate/z-nomp.git
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:
commit
467d143bbe
|
@ -209,7 +209,7 @@ module.exports = function(logger){
|
||||||
var redisClient = redis.createClient(6379, "localhost")
|
var redisClient = redis.createClient(6379, "localhost")
|
||||||
redisClient.on('ready', function(){
|
redisClient.on('ready', function(){
|
||||||
redisClient.hgetall("proxyState", function(error, obj) {
|
redisClient.hgetall("proxyState", function(error, obj) {
|
||||||
if (error) {
|
if (error || obj == null) {
|
||||||
logger.debug(logSystem, logComponent, logSubCat, 'No last proxy state found in redis');
|
logger.debug(logSystem, logComponent, logSubCat, 'No last proxy state found in redis');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue