Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed safe mode and changed event names

  • Loading branch information...
commit be7fa777390575eb45211ab4d2201791a23dcd9b 1 parent 889ffa1
@louischatriot louischatriot authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/connect-redis.js
View
6 lib/connect-redis.js
@@ -69,10 +69,8 @@ module.exports = function(connect){
}
// Let users of the RedisStore handle connection to Redis issues if safe mode enabled
- if (options.safeMode) {
- self.client.on('error', function () { self.emit('connectionError'); });
- self.client.on('connect', function () { self.emit('connectionEstablished'); });
- }
+ self.client.on('error', function () { self.emit('disconnect'); });
+ self.client.on('connect', function () { self.emit('reconnect'); });
};
/**
Please sign in to comment.
Something went wrong with that request. Please try again.