Skip to content

Commit

Permalink
[api] Guard for no options for Worker
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki committed Dec 9, 2011
1 parent d174539 commit cf716d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/forever/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ function findSocket(sockPath, startAt, callback) {
}

var Worker = exports.Worker = function (options) {
options || (options = {});

this.monitor = options.monitor;
this.sockPath = options.sockPath || forever.config.get('sockPath');

Expand Down

0 comments on commit cf716d5

Please sign in to comment.