Add redis client error listener
This commit is contained in:
parent
b6bb0aa56d
commit
77d84d5b76
|
@ -2,7 +2,7 @@
|
||||||
"author": "Calvin Montgomery",
|
"author": "Calvin Montgomery",
|
||||||
"name": "CyTube",
|
"name": "CyTube",
|
||||||
"description": "Online media synchronizer and chat",
|
"description": "Online media synchronizer and chat",
|
||||||
"version": "3.16.1",
|
"version": "3.17.0",
|
||||||
"repository": {
|
"repository": {
|
||||||
"url": "http://github.com/calzoneman/sync"
|
"url": "http://github.com/calzoneman/sync"
|
||||||
},
|
},
|
||||||
|
|
|
@ -15,6 +15,10 @@ class PartitionChannelIndex {
|
||||||
this.redisClient = redisClient;
|
this.redisClient = redisClient;
|
||||||
this.uid = uuid.v4();
|
this.uid = uuid.v4();
|
||||||
this.cachedList = [];
|
this.cachedList = [];
|
||||||
|
this.redisClient.on('error', error => {
|
||||||
|
Logger.errlog.log(`Redis error: ${error}`);
|
||||||
|
});
|
||||||
|
|
||||||
process.nextTick(() => {
|
process.nextTick(() => {
|
||||||
SERVER = require('../server').getServer();
|
SERVER = require('../server').getServer();
|
||||||
this.refreshCache();
|
this.refreshCache();
|
||||||
|
|
Loading…
Reference in a new issue