Skip to content

Commit

Permalink
Refactored Session#startReaper() with ext millisecond conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Mar 15, 2010
1 parent acd2852 commit 440d956
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/express/plugins/session.js
Expand Up @@ -168,12 +168,9 @@ exports.Session = Plugin.extend({
*/

startReaper: function() {
var self = this,
oneDay = 86400000,
oneHour = 3600000
setInterval(function(){
self.store.reap(self.lifetime || oneDay)
}, self.reapInterval || self.reapEvery || oneHour)
this.store.reap(this.lifetime || (1).day)
}, this.reapInterval || this.reapEvery || (1).hour, this)
}
},

Expand Down

0 comments on commit 440d956

Please sign in to comment.