mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 14:31:13 +02:00
Garbage collect VM when closing a project
This commit is contained in:
1 parent
66860655b9
commit
a9afaa028c
6 files changed
+32
-34
No files matched your search
@@ -121,11 +121,7 @@ class ProjectHandler:
|
||||
|
||||
pm = ProjectManager.instance()
|
||||
project = pm.get_project(request.match_info["project_id"])
|
||||
for module in MODULES:
|
||||
yield from module.instance().project_closing(project)
|
||||
yield from project.close()
|
||||
for module in MODULES:
|
||||
yield from module.instance().project_closed(project)
|
||||
pm.remove_project(project.id)
|
||||
response.set_status(204)
|
||||
|
||||
|
||||
Reference in new issue
Block a user