Fix a crash at vmware stop

Fix https://github.com/GNS3/gns3-gui/issues/665
This commit is contained in:
Julien Duponchelle 2015-09-17 15:51:46 +02:00
parent bb080fa96a
commit b1f3210a4c

View File

@ -469,7 +469,7 @@ class VMwareVM(BaseVM):
if not self.manager.is_managed_vmnet(vmnet):
continue
log.debug("removing adapter {}".format(adapter_number))
for key in self._vmx_pairs.keys():
for key in list(self._vmx_pairs.keys()):
if key.startswith("ethernet{}.".format(adapter_number)):
del self._vmx_pairs[key]