From a4f01f80625c5e0ec0a2a93b9ac4dbc2c8492918 Mon Sep 17 00:00:00 2001 From: william Date: Fri, 27 May 2016 13:10:45 -0400 Subject: [PATCH] stuff --- routes/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/api.js b/routes/api.js index ccedea7..1ad2202 100644 --- a/routes/api.js +++ b/routes/api.js @@ -18,7 +18,7 @@ var checkDroplet = function(id, time){ time = time || 5000; doapi.dropletInfo(id, function(data){ newWorker = JSON.parse(data)['droplet']; - if(worker.status == 'active'){ + if(newWorker.status == 'active'){ setTimeout(startRunners(function(){workers[workers.push(makeWokerObj(newWorker))-1]}), 5000); isCheckingWorkers = false; return true;