Fix issue when resuming Qemu VM. Fixes https://github.com/GNS3/gns3-gui/issues/3027

This commit is contained in:
grossmj 2020-09-04 18:02:21 +09:30
parent 5305117a75
commit 2bf625e000

View File

@ -1295,6 +1295,7 @@ class QemuVM(BaseNode):
raise QemuError("Resuming a QEMU VM is not supported") raise QemuError("Resuming a QEMU VM is not supported")
elif vm_status == "paused": elif vm_status == "paused":
await self._control_vm("cont") await self._control_vm("cont")
self.status = "started"
log.debug("QEMU VM has been resumed") log.debug("QEMU VM has been resumed")
else: else:
log.info("QEMU VM is not paused to be resumed, current status is {}".format(vm_status)) log.info("QEMU VM is not paused to be resumed, current status is {}".format(vm_status))