From 4cc66a3801694158c390fd09ed9f8819feb341ca Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Wed, 26 Aug 2015 17:01:16 +0200 Subject: [PATCH] Fix when you stop qemu on windows you have an error Fix #625 --- gns3server/modules/qemu/qemu_vm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/modules/qemu/qemu_vm.py b/gns3server/modules/qemu/qemu_vm.py index 3afef86a..a370a8b8 100644 --- a/gns3server/modules/qemu/qemu_vm.py +++ b/gns3server/modules/qemu/qemu_vm.py @@ -892,6 +892,7 @@ class QemuVM(BaseVM): self._hw_virtualization = False if self.is_running(): log.info('Stopping QEMU VM "{}" PID={}'.format(self._name, self._process.pid)) + self.status = "stopped" try: if self.acpi_shutdown: yield from self._control_vm("system_powerdown") @@ -903,7 +904,6 @@ class QemuVM(BaseVM): self._process.kill() if self._process.returncode is None: log.warn('QEMU VM "{}" PID={} is still running'.format(self._name, self._process.pid)) - self.status = "stopped" self._process = None self._stop_cpulimit()