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

Do not start QEMU console if QEMU process is not started. Fixes https://github.com/GNS3/gns3-gui/issues/2712

This commit is contained in:
grossmj 2019-05-25 15:31:35 +07:00
parent a86f881d83
commit 3b87a19979

View File

@ -972,7 +972,8 @@ class QemuVM(BaseNode):
await self._control_vm_commands(set_link_commands) await self._control_vm_commands(set_link_commands)
try: try:
await self.start_wrap_console() if self.is_running():
await self.start_wrap_console()
except OSError as e: except OSError as e:
raise QemuError("Could not start Telnet QEMU console {}\n".format(e)) raise QemuError("Could not start Telnet QEMU console {}\n".format(e))