Fix ProcessLookupError in Qemu

Fix #373
This commit is contained in:
Julien Duponchelle committed 2015-12-07 10:50:34 +01:00
1 parent a67b218bde
commit f3b71dcdef
1 file changed
+2
+2
View File
@@ -915,6 +915,8 @@ class QemuVM(BaseVM):
else:
self._process.terminate()
yield from gns3server.utils.asyncio.wait_for_process_termination(self._process, timeout=3)
except ProcessLookupError:
pass
except asyncio.TimeoutError:
try:
self._process.kill()