mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-23 14:42:28 +00:00
Avoid crash when closing vms
Otherwise the size of dict change and Python raise an exception.
This commit is contained in:
parent
017c5ac9f6
commit
7bed9f56bc
@ -97,7 +97,7 @@ class BaseManager:
|
|||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def unload(self):
|
def unload(self):
|
||||||
|
|
||||||
for uuid in self._vms.keys():
|
for uuid in list(self._vms.keys()):
|
||||||
try:
|
try:
|
||||||
yield from self.delete_vm(uuid)
|
yield from self.delete_vm(uuid)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user