diff --git a/packages/data-point-cache/lib/redis-client.js b/packages/data-point-cache/lib/redis-client.js index 0acb1f82..bccabeb5 100644 --- a/packages/data-point-cache/lib/redis-client.js +++ b/packages/data-point-cache/lib/redis-client.js @@ -10,12 +10,11 @@ function reconnectOnError(err) { function redisDecorator(redis, resolve, reject) { let wasConnected = false; redis.on("error", error => { + console.error("ioredis - error", error.toString()); if (!wasConnected) { redis.disconnect(); reject(error); - return; } - console.error("ioredis - error", error.toString()); }); redis.on("ready", () => {