You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
Add warnings and handle protocol errors gracefuly
This commit is contained in:
@@ -171,7 +171,10 @@ module.exports = {
|
||||
},
|
||||
callFuncAfter: function (func, max) {
|
||||
var i = 0;
|
||||
return function () {
|
||||
return function (err) {
|
||||
if (err) {
|
||||
throw err;
|
||||
}
|
||||
i++;
|
||||
if (i === max) {
|
||||
func();
|
||||
|
Reference in New Issue
Block a user