Fix a rare crash when stopping qemu

Fix #821
This commit is contained in:
Julien Duponchelle
2016-12-12 09:16:29 +01:00
parent c4327ec74c
commit 508edf5cc5

View File

@ -972,6 +972,7 @@ class QemuVM(BaseNode):
except ProcessLookupError: except ProcessLookupError:
pass pass
except asyncio.TimeoutError: except asyncio.TimeoutError:
if self._process:
try: try:
self._process.kill() self._process.kill()
except ProcessLookupError: except ProcessLookupError: