Permalink
Browse files

fix for ps to emit end on no processes

  • Loading branch information...
substack committed Mar 1, 2012
1 parent cff9746 commit 5f515e09ccc9c3b7a5662bbce7853d1a22c62474
Showing with 2 additions and 1 deletion.
  1. +1 −0 index.js
  2. +1 −1 package.json
View
@@ -145,6 +145,7 @@ Propagit.prototype.createService = function (remote, conn) {
service.ps = function (emit) {
var drones = self.drones;
var pending = drones.length;
+ if (pending === 0) emit('end')
drones.forEach(function (drone) {
drone.ps(function (ps) {
View
@@ -1,7 +1,7 @@
{
"name" : "propagit",
"description" : "cascading multi-server git deployment",
- "version" : "0.4.3",
+ "version" : "0.4.4",
"repository" : {
"type" : "git",
"url" : "git://github.com/substack/propagit.git"

0 comments on commit 5f515e0

Please sign in to comment.