From eec89027a47ae76c38aabbdc6eddcce445a6e0c9 Mon Sep 17 00:00:00 2001 From: william Date: Mon, 30 May 2016 17:18:36 -0400 Subject: [PATCH] stuff --- routes/api.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/routes/api.js b/routes/api.js index ca12ffd..f175837 100644 --- a/routes/api.js +++ b/routes/api.js @@ -136,9 +136,8 @@ var workers = (function(){ return workers.create(); } if(workers.length > minWorkers && workers[workers.length-1].usedrunner === 0 && workers[workers.length-2].usedrunner === 0){ - console.log('Last 2 runners not used, killing last runner'); - workers.destroy(); - changed = true; + console.log('Last 2 runners not used, killing last runner', workers.length); + return workers.destroy(); } for(let worker of workers){