1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-12 19:38:57 +00:00

Fix a rare error when closing a project

Fix #897
This commit is contained in:
Julien Duponchelle 2017-02-13 15:18:00 +01:00
parent 4fed98617b
commit defcf82610
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -536,7 +536,7 @@ class Project:
@asyncio.coroutine
def close(self, ignore_notification=False):
yield from self.stop_all()
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), dont_connect=True)
# We don't care if a compute is down at this step