mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-21 05:43:12 +00:00
parent
cc7fe1a477
commit
22e4fec2e2
@ -907,7 +907,10 @@ class QemuVM(BaseVM):
|
||||
self._process.terminate()
|
||||
yield from gns3server.utils.asyncio.wait_for_process_termination(self._process, timeout=3)
|
||||
except asyncio.TimeoutError:
|
||||
self._process.kill()
|
||||
try:
|
||||
self._process.kill()
|
||||
except ProcessLookupError:
|
||||
pass
|
||||
if self._process.returncode is None:
|
||||
log.warn('QEMU VM "{}" PID={} is still running'.format(self._name, self._process.pid))
|
||||
self._process = None
|
||||
|
Loading…
Reference in New Issue
Block a user