Skip to content
Snippets Groups Projects
Commit 3e195dad authored by Ryan Izard's avatar Ryan Izard Committed by GitHub
Browse files

Merge pull request #714 from rizard/master

Fix ConcurrentModifcationException in Forwarding
parents dbc61db2 7b941cad
No related branches found
No related tags found
No related merge requests found
......@@ -210,10 +210,12 @@ public class Forwarding extends ForwardingBase implements IFloodlightModule, IOF
flowSetIdToNpts.remove(flowSetId);
Iterator<Entry<NodePortTuple, Set<U64>>> itr = nptToFlowSetIds.entrySet().iterator();
boolean removed = false;
while (itr.hasNext()) {
Entry<NodePortTuple, Set<U64>> e = itr.next();
if (e.getKey().equals(avoid)) {
if (e.getKey().equals(avoid) && ! removed) {
avoidItr.remove();
removed = true;
} else {
Set<U64> ids = e.getValue();
ids.remove(flowSetId);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment