mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Stop Dynamips hypervisors used by devices before the project is closed.
This is to avoid locked files by hypervisors preventing temporary project working directories to be deleted.
This commit is contained in:
1 parent
3ef529fb0e
commit
c48ca212bd
3 files changed
+23
-3
No files matched your search
@@ -121,6 +121,8 @@ 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)
|
||||
|
||||
Reference in new issue
Block a user