From 3f7c4c04743f03205958fa1a1d640e378fa59d4f Mon Sep 17 00:00:00 2001 From: Jeremy Grossmann Date: Fri, 1 Mar 2019 23:40:32 +0700 Subject: [PATCH] Update qemu_vm.py --- gns3server/compute/qemu/qemu_vm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/compute/qemu/qemu_vm.py b/gns3server/compute/qemu/qemu_vm.py index 03516cb7..a7f21ada 100644 --- a/gns3server/compute/qemu/qemu_vm.py +++ b/gns3server/compute/qemu/qemu_vm.py @@ -984,7 +984,7 @@ class QemuVM(BaseNode): log.info("QEMU process has stopped, return code: %d", returncode) await self.stop() # A return code of 1 seem fine on Windows - if returncode != 0 and (returncode != 1 or not sys.platform.startswith("win")): + if returncode != 0 and (not sys.platform.startswith("win") or returncode != 1): self.project.emit("log.error", {"message": "QEMU process has stopped, return code: {}\n{}".format(returncode, self.read_stdout())}) async def stop(self):