Skip to content
Myr

Removed session reaper try/catch

Before adoption: this commit came in with the history the project adopted, so no landing records it.

we can revisit this issue later, and deal with it across Cache as well

authored by visionmedia · committed by visionmedia · parent a08b14a · Browse files · 1 file+3 added−14 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−14 removed

  • other:+3 added−14 removed

1 file+3 added−14 removed

modified:lib/express/plugins/session.js+3 added-14 removed
188 unmodified lines
189 * @api private190 */191 192 startReaper: function() {193 var self = this194 (function _reap() {195 setTimeout(function() {196 try {197 self.store.reap(self.lifetime || (1).day, _reap) 198 }199 catch(e) { 200 puts("Error: Problem during reap: " + e)201 // as long as _reap never throws an exception we'll be ok. 202 // (and the delegated reap method doesn't throw an exception after executing the callback)203 _reap(); 204 }205 }, self.reapInterval || self.reapEvery || (1).hour, this)206 })();193 setTimeout(function(self) {194 self.store.reap(self.lifetime || (1).day) 195 }, this.reapInterval || this.reapEvery || (1).hour, this)196 }197 },198 199 // --- Events
34 unmodified lines