From 1c2261e619a2127239deca0e0d9a98cb0990808f Mon Sep 17 00:00:00 2001 From: Cong Liu Date: Mon, 18 Sep 2017 15:20:10 +0800 Subject: [PATCH] fixed crash if closed from client fixed #6 --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index f3916f5..a8b3faf 100644 --- a/index.js +++ b/index.js @@ -70,8 +70,9 @@ Adapter.prototype.connect = function(cb) { } Adapter.prototype.end = function(cb) { - this.pubClient.end(); - this.subClient.end(); + this.redisPubClient.end(); + this.redisSubClient.end(); + cb(); } /**