Commit aa047627 authored by Léo-Paul Géneau's avatar Léo-Paul Géneau 👾

tmp

parent 89fbfc94
......@@ -195,7 +195,7 @@
return console.log("emergency state");
}
me.timestamp_list.forEach(function (last_timestamp, id) {
JSON.parse(JSON.stringify(me.timestamp_list)).forEach(function (last_timestamp, id) {
if (me.id_list[id] !== me.id && Math.abs(timestamp - last_timestamp) >= TIMEOUT) {
console.log(
"Lost drone",
......@@ -205,7 +205,6 @@
);
me.id_list.splice(me.id_list.indexOf(id), 1);
me.timestamp_list.splice(me.id_list.indexOf(id), 1);
return;
}
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment