This commit is contained in:
William Mantly 2016-06-24 12:16:32 -04:00
parent 4dd67ea2f6
commit 8533950663

View File

@ -100,7 +100,7 @@ var workers = (function(){
doapi.dropletsByTag('clworker', function(data){
data = JSON.parse(data);
data['droplets'].forEach(function(worker){
if(worker.id in currentIDs) return false;
if(~currentIDs.indexOf(worker.id)) return false;
console.log('found old droplet, killing it');
doapi.dropletDestroy(worker.id, function(){});