Permalink
Browse files

check for empty auth objects before syncing

  • Loading branch information...
1 parent 677cdb3 commit 2d36fcce4916148eefd7249541a3abb7ac62e219 @smurthas smurthas committed Oct 12, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/taskman.js
View
@@ -699,6 +699,8 @@ function runWorker(pid, callback, force)
}
function doTasksInSeries(todo, self, pi, cbDone) {
+ var pid = pi && pi.auth && pi.auth.pid;
+ if (!pid) return cbDone('No pid for pi' + JSON.stringify(pi));
// do each task serially due to config sharing!
logger.debug('working doing tasks in series', todo.length);
async.forEachSeries(todo, function(task, cbLoop) {

0 comments on commit 2d36fcc

Please sign in to comment.