Skip to content

Commit

Permalink
fixed crash if closed from client
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostoy committed Sep 18, 2017
1 parent 7c9bc0a commit 1c2261e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

/**
Expand Down

0 comments on commit 1c2261e

Please # to comment.