Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[api] Remove redudant `forever` options

  • Loading branch information...
commit d793874235e149575e75976db2a6eca56ea5f389 1 parent c9ab4f0
@mmalecki mmalecki authored indexzero committed
Showing with 1 addition and 2 deletions.
  1. +1 −2  lib/forever/monitor.js
View
3  lib/forever/monitor.js
@@ -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');
@@ -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();
}
Please sign in to comment.
Something went wrong with that request. Please try again.