1
0
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:
Ruben Bridgewater
2016-01-21 22:28:26 +01:00
parent 8a43dea9be
commit 8dcf06754d
8 changed files with 106 additions and 46 deletions

View File

@@ -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();