Permalink
Browse files

fix error when pid only contains digits

  • Loading branch information...
1 parent 827e9ea commit 3f49429d9f071e2d31de11c99f5539ce1676aa37 @tellnes tellnes committed May 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/stop.js
View
@@ -19,7 +19,7 @@ p.hub(function (hub) {
var opts = {
drone : argv.drone,
drones : argv.drones,
- pid : argv._.map(function (x) { return x.replace(/^pid#/, '') }),
+ pid : argv._.map(function (x) { return x.toString().replace(/^pid#/, '') }),
};
hub.stop(opts, function (err, drones) {
Object.keys(drones).forEach(function (id) {

0 comments on commit 3f49429

Please sign in to comment.