Skip to content

Commit

Permalink
if target is not a number, it could only be a script path, otherwise …
Browse files Browse the repository at this point in the history
…it is pid|uid|index|id
  • Loading branch information
Tjatse committed Nov 9, 2014
1 parent 5c7ba63 commit c3baf77
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/forever.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,7 @@ function stopOrRestart(action, event, format, target) {
|| forever.findById(target, processes)
|| forever.findByIndex(target, processes)
|| forever.findByUid(target, processes)
|| forever.findByPid(target, processes)
|| forever.findByScript(target, processes);
|| forever.findByPid(target, processes);
}

if (procs && procs.length > 0) {
Expand Down

0 comments on commit c3baf77

Please sign in to comment.