Skip to content

Commit

Permalink
do not disconnect fake redis
Browse files Browse the repository at this point in the history
  • Loading branch information
evantahler committed Jun 11, 2015
1 parent 546fa7f commit 6926f6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ connection.prototype.connect = function(callback){
connection.prototype.disconnect = function(){
var self = this;
// Only disconnect if we established the redis connection on our own.
if (!self.options.redis) {
if (!self.options.redis && !self.options.package === 'fakeredis') {
return self.redis.quit();
}
}
Expand Down

0 comments on commit 6926f6a

Please sign in to comment.