1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 09:18:08 +00:00

Fix Bug when delete fake-running VMBox

Fix https://github.com/GNS3/gns3-gui/issues/1933
This commit is contained in:
Julien Duponchelle 2017-03-22 11:08:16 +01:00
parent 8712866489
commit cb78eb4ee3
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -1014,6 +1014,8 @@ class VirtualBoxVM(BaseNode):
if self.ubridge:
yield from self._ubridge_send("bridge delete {name}".format(name="VBOX-{}-{}".format(self._id, adapter_number)))
vm_state = yield from self._get_vm_state()
if vm_state == "running":
yield from self._control_vm("setlinkstate{} off".format(adapter_number + 1))
else:
vm_state = yield from self._get_vm_state()