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 committed 2019-05-25 15:31:35 +07:00
1 parent a86f881d83
commit 3b87a19979
1 file changed
+2 -1
+2 -1
View File
@@ -972,7 +972,8 @@ class QemuVM(BaseNode):
await self._control_vm_commands(set_link_commands)
try:
await self.start_wrap_console()
if self.is_running():
await self.start_wrap_console()
except OSError as e:
raise QemuError("Could not start Telnet QEMU console {}\n".format(e))