We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d73ccdb commit 3a3f5cfCopy full SHA for 3a3f5cf
js/tracker.js
@@ -1915,7 +1915,10 @@ function addPosition(position) {
1915
else if(wvar.mode == "Position") { // we don't splice old postions in latest position mode
1916
return;
1917
}
1918
- else if(vehicle.positions_ts.indexOf(new_ts) == -1) { // backlog packets, need to splice them into the array
+ else {
1919
+ if(vehicle.positions_ts.indexOf(new_ts) > -1) return; // duplicate packet
1920
+
1921
+ // backlog packets, need to splice them into the array
1922
// find out the index at which we should insert the new point
1923
var xref = vehicle.positions_ts;
1924
var idx = -1, len = xref.length;
0 commit comments