Skip to content

Commit

Permalink
[api] Remove redudant forever options
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki authored and indexzero committed Nov 23, 2011
1 parent c9ab4f0 commit d793874
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/forever/monitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ var Monitor = exports.Monitor = function (script, options) {
//
options = options || {};
this.silent = options.silent || false;
this.forever = options.forever || false;
this.killTree = options.killTree !== false;
this.uid = options.uid || utile.randomString(4);
this.pidFile = options.pidFile || path.join(forever.config.get('pidPath'), this.uid + '.pid');
Expand Down Expand Up @@ -234,7 +233,7 @@ Monitor.prototype.start = function (restart) {

self.times++;

if (self.forceStop || (!self.forever && self.times >= self.max)
if (self.forceStop || (self.times >= self.max)
|| (spinning && typeof self.spinSleepTime !== 'number') && !self.forceRestart) {
letChildDie();
}
Expand Down

0 comments on commit d793874

Please sign in to comment.