mirror of https://github.com/calzoneman/sync.git
Add redis client error listener
This commit is contained in:
parent
b6bb0aa56d
commit
77d84d5b76
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue