asd #1

Closed
wmantly wants to merge 44 commits from refactor-workers into master
Showing only changes of commit 11e44c94e7 - Show all commits

View File

@ -353,9 +353,7 @@ var WorkerCollection = (function(){
workers.checkForZombies();
// if there are workers being created, stop scale up and down check
if(workers.currentCreating + workers.length > workers.settings.min) {
null;
} else if(workers.currentCreating){
if(workers.currentCreating + workers.length >= workers.settings.min){
return console.log(`Killing balance, workers are being created.`);
}