Fix a race condition when handling error at project opening

Fix #983
This commit is contained in:
Julien Duponchelle committed 2017-04-19 09:17:32 +02:00
1 parent d9b93ccd66
commit 2962649dc8
1 file changed
+1 -1
+1 -1
View File
@@ -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