mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Fixes issue with server shutdown.
This commit is contained in:
1 parent
9cc5131024
commit
ff6c864294
3 files changed
+15
-12
No files matched your search
@@ -302,6 +302,7 @@ class Dynamips(IModule):
|
||||
|
||||
else:
|
||||
if "project_name" in request:
|
||||
# for remote server
|
||||
new_working_dir = os.path.join(self._projects_dir, request["project_name"])
|
||||
|
||||
if self._projects_dir != self._working_dir != new_working_dir:
|
||||
@@ -321,10 +322,11 @@ class Dynamips(IModule):
|
||||
return
|
||||
|
||||
elif "working_dir" in request:
|
||||
# for local server
|
||||
new_working_dir = request.pop("working_dir")
|
||||
|
||||
self._hypervisor_manager.working_dir = new_working_dir
|
||||
self._working_dir = new_working_dir
|
||||
self._hypervisor_manager.working_dir = new_working_dir
|
||||
|
||||
# apply settings to the hypervisor manager
|
||||
for name, value in request.items():
|
||||
|
||||
Reference in new issue
Block a user