Skip to content

Commit

Permalink
[fix] When stopping only respond with those processes which have been…
Browse files Browse the repository at this point in the history
… stopped. Fixes #87
  • Loading branch information
indexzero committed Jul 23, 2011
1 parent e7b9e58 commit e47af9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/forever.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ forever.startServer = function () {
// Stops the process(es) with the specified index or script name
// in the list of all processes
//
forever.stop = function (target, format, restart) {
forever.stop = function (target, format) {
var emitter = new events.EventEmitter(),
results = [];

Expand All @@ -297,7 +297,7 @@ forever.stop = function (target, format, restart) {
});

process.nextTick(function () {
emitter.emit('stop', forever.format(format, processes));
emitter.emit('stop', forever.format(format, procs));
});
}
else {
Expand Down

0 comments on commit e47af9c

Please sign in to comment.