mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
emit works
This commit is contained in:
@@ -90,6 +90,11 @@
|
||||
cxn = redis.createClient(nconf.get('redis:port'), nconf.get('redis:host'));
|
||||
}
|
||||
|
||||
cxn.on('error', function (err) {
|
||||
winston.error(err.stack);
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
if (nconf.get('redis:password')) {
|
||||
cxn.auth(nconf.get('redis:password'));
|
||||
}
|
||||
@@ -104,11 +109,6 @@
|
||||
});
|
||||
}
|
||||
|
||||
cxn.on('error', function (err) {
|
||||
winston.error(err.stack);
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
return cxn;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user