Commit 43b11a47 authored by Tom Niget's avatar Tom Niget

Copy before iterating

parent 2a5db95c
......@@ -466,7 +466,7 @@ class Switch(ExternalInterface):
debug("Switch(0x%x).destroy()" % id(self))
# Verify they are still there
for p in self._ports.keys():
for p in list(self._ports.keys()):
self._check_port(p)
self.up = False
......
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