Fix a race condition when handling error at project opening

Fix #983
pull/987/head
Julien Duponchelle 7 years ago
parent d9b93ccd66
commit 2962649dc8
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

@ -650,7 +650,7 @@ class Project:
self.dump()
# We catch all error to be able to rollback the .gns3 to the previous state
except Exception as e:
for compute in self._project_created_on_compute:
for compute in list(self._project_created_on_compute):
try:
yield from compute.post("/projects/{}/close".format(self._id))
# We don't care if a compute is down at this step

Loading…
Cancel
Save