mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 11:18:11 +00:00
parent
c4327ec74c
commit
508edf5cc5
@ -972,12 +972,13 @@ class QemuVM(BaseNode):
|
|||||||
except ProcessLookupError:
|
except ProcessLookupError:
|
||||||
pass
|
pass
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
try:
|
if self._process:
|
||||||
self._process.kill()
|
try:
|
||||||
except ProcessLookupError:
|
self._process.kill()
|
||||||
pass
|
except ProcessLookupError:
|
||||||
if self._process.returncode is None:
|
pass
|
||||||
log.warn('QEMU VM "{}" PID={} is still running'.format(self._name, self._process.pid))
|
if self._process.returncode is None:
|
||||||
|
log.warn('QEMU VM "{}" PID={} is still running'.format(self._name, self._process.pid))
|
||||||
self._process = None
|
self._process = None
|
||||||
self._stop_cpulimit()
|
self._stop_cpulimit()
|
||||||
yield from super().stop()
|
yield from super().stop()
|
||||||
|
Loading…
Reference in New Issue
Block a user