Prevent double start of VirtualBox VM and VMware VM

Fix https://github.com/GNS3/gns3-gui/issues/1664
This commit is contained in:
Julien Duponchelle committed 2016-11-17 10:38:29 +01:00
1 parent 81b2894658
commit 75890c8f5a
2 files changed
+6

No files matched your search

@@ -206,6 +206,9 @@ class VirtualBoxVM(BaseNode):
Starts this VirtualBox VM.
"""
if self.status == "started":
return
# resume the VM if it is paused
vm_state = yield from self._get_vm_state()
if vm_state == "paused":
+3
View File
@@ -386,6 +386,9 @@ class VMwareVM(BaseNode):
Starts this VMware VM.
"""
if self.status == "started":
return
if (yield from self.is_running()):
raise VMwareError("The VM is already running in VMware")