Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Attempt to fix JOSM CI failures
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Smock <[email protected]>
  • Loading branch information
tsmock committed Dec 15, 2022
1 parent 387f089 commit 116fc30
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ protected MapillarySequence doInBackground() {
final int j = i;
final int indexDifference = Math.min(Math.abs(j * STEP - location),
Math.abs((j + 1) * STEP - location));
organizedGet.add(new Pair<>(indexDifference, () -> getImageRange(j, imagesToGet, images)));
if (!this.isCancelled()) {
organizedGet.add(new Pair<>(indexDifference, () -> getImageRange(j, imagesToGet, images)));
}
}
}
organizedGet.sort(Comparator.comparingInt(pair -> pair.a));
Expand Down

0 comments on commit 116fc30

Please sign in to comment.