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