Skip to content
Browse files

fix for ps to emit end on no processes

  • Loading branch information...
1 parent cff9746 commit 5f515e09ccc9c3b7a5662bbce7853d1a22c62474 @substack committed Feb 29, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −0 index.js
  2. +1 −1 package.json
View
1 index.js
@@ -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
2 package.json
@@ -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.
Something went wrong with that request. Please try again.