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

@ -255,7 +255,9 @@ class BaseManager:
:param project: Project instance
"""
pass
for vm in project.vms:
if vm.id in self._vms:
del self._vms[vm.id]
@asyncio.coroutine
def project_moved(self, project):