diff --git a/index.js b/index.js index 5a71bca39ae..703bfd68504 100644 --- a/index.js +++ b/index.js @@ -36,8 +36,8 @@ function RedisClient(stream, options) { options = options || {}; var self = this; - this.pipeline = 0; if (!stream.cork) { + this.pipeline = 0; this.cork = function noop (len) {}; this.once('ready', function () { self.cork = function (len) { diff --git a/package.json b/package.json index c85d0ce937c..b3477dc773a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redis", - "version": "2.2.2", + "version": "2.2.3", "description": "Redis client library", "keywords": [ "database",