mirror of
https://github.com/GNS3/gns3-server
synced 2024-10-31 20:58:56 +00:00
Fix exception when loading and quickly closing a project.
This commit is contained in:
parent
d506962bdb
commit
aaaeb410d5
@ -744,7 +744,8 @@ class Project:
|
||||
os.remove(snapshot.path)
|
||||
|
||||
async def close(self, ignore_notification=False):
|
||||
if self._status == "closed":
|
||||
if self._status == "closed" or self._loading:
|
||||
log.debug("Closing project '{}' ignored because it is already closed or being loaded".format(self.name))
|
||||
return
|
||||
await self.stop_all()
|
||||
for compute in list(self._project_created_on_compute):
|
||||
|
Loading…
Reference in New Issue
Block a user