Add redis client error listener

This commit is contained in:
calzoneman 2016-06-13 23:09:27 -07:00
parent b6bb0aa56d
commit 77d84d5b76
2 changed files with 5 additions and 1 deletions

View File

@ -2,7 +2,7 @@
"author": "Calvin Montgomery",
"name": "CyTube",
"description": "Online media synchronizer and chat",
"version": "3.16.1",
"version": "3.17.0",
"repository": {
"url": "http://github.com/calzoneman/sync"
},

View File

@ -15,6 +15,10 @@ class PartitionChannelIndex {
this.redisClient = redisClient;
this.uid = uuid.v4();
this.cachedList = [];
this.redisClient.on('error', error => {
Logger.errlog.log(`Redis error: ${error}`);
});
process.nextTick(() => {
SERVER = require('../server').getServer();
this.refreshCache();