index
This commit is contained in:
parent
4dd67ea2f6
commit
8533950663
@ -100,7 +100,7 @@ var workers = (function(){
|
|||||||
doapi.dropletsByTag('clworker', function(data){
|
doapi.dropletsByTag('clworker', function(data){
|
||||||
data = JSON.parse(data);
|
data = JSON.parse(data);
|
||||||
data['droplets'].forEach(function(worker){
|
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');
|
console.log('found old droplet, killing it');
|
||||||
doapi.dropletDestroy(worker.id, function(){});
|
doapi.dropletDestroy(worker.id, function(){});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user