Garbage collect VM when closing a project

This commit is contained in:
Julien Duponchelle
2015-03-02 17:17:28 +01:00
parent 66860655b9
commit a9afaa028c
6 changed files with 32 additions and 34 deletions

View File

@ -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)