From aaaeb410d5cc7430080ff59ea8f7b811192ee432 Mon Sep 17 00:00:00 2001 From: grossmj Date: Tue, 12 Mar 2019 21:50:09 +0700 Subject: [PATCH] Fix exception when loading and quickly closing a project. --- gns3server/controller/project.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gns3server/controller/project.py b/gns3server/controller/project.py index 76a2396b..af55b80b 100644 --- a/gns3server/controller/project.py +++ b/gns3server/controller/project.py @@ -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):