Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed session reaper

  • Loading branch information...
commit febf44396097b9fd0a26ba844f268b7dc59992a1 1 parent f5da81e
@tj tj authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/express/plugins/session.js
View
2  lib/express/plugins/session.js
@@ -190,7 +190,7 @@ exports.Session = Plugin.extend({
*/
startReaper: function() {
- setTimeout(function(self) {
+ setInterval(function(self) {
self.store.reap(self.lifetime || (1).day)
}, this.reapInterval || this.reapEvery || (1).hour, this)
}
Please sign in to comment.
Something went wrong with that request. Please try again.