Skip to content

Commit

Permalink
DDF-2644 Catalog UI bundle shutdown / startup cleanly. Resolved Concu…
Browse files Browse the repository at this point in the history
…rrentModificationException.
  • Loading branch information
lcrosenbu authored and rzwiefel committed Jan 5, 2017
1 parent 5440484 commit 53b923a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
Expand Down Expand Up @@ -392,10 +393,11 @@ private void findDifferences(List<Map<String, Object>> innerList,
}

private void stopImageryEndpoints(List<String> imageryEndpointsToStop) {
for (String endpoint : imageryEndpointsToStop) {
for (Iterator<String> iterator = imageryEndpointsToStop.iterator(); iterator.hasNext(); ) {
String endpoint = iterator.next();
try {
httpProxy.stop(endpoint);
imageryEndpoints.remove(endpoint);
iterator.remove();
} catch (Exception e) {
LOGGER.error("Unable to stop proxy endpoint: {}", endpoint, e);
}
Expand Down

0 comments on commit 53b923a

Please sign in to comment.