mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
Explicitly close VM when the server is shutdown.
This commit is contained in:
1 parent
e61e976368
commit
0d503b779e
2 files changed
+13
-5
No files matched your search
+2
-1
@@ -68,7 +68,8 @@ def server(request, loop, port_manager):
|
||||
|
||||
def tear_down():
|
||||
for module in MODULES:
|
||||
loop.run_until_complete(module.unload())
|
||||
instance = module.instance()
|
||||
loop.run_until_complete(instance.unload())
|
||||
srv.close()
|
||||
srv.wait_closed()
|
||||
request.addfinalizer(tear_down)
|
||||
|
||||
Reference in new issue
Block a user