mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-20 21:33:09 +00:00
Catch ProcessLookupError in Qemu VM.
This commit is contained in:
parent
3f86df5169
commit
fc5afa6676
@ -611,6 +611,8 @@ class QemuVM(BaseVM):
|
|||||||
log.error("Cannot stop the Qemu process: {}".format(e))
|
log.error("Cannot stop the Qemu process: {}".format(e))
|
||||||
if self._process.returncode is None:
|
if self._process.returncode is None:
|
||||||
log.warn('QEMU VM "{}" with PID={} is still running'.format(self._name, self._process.pid))
|
log.warn('QEMU VM "{}" with PID={} is still running'.format(self._name, self._process.pid))
|
||||||
|
except ProcessLookupError:
|
||||||
|
pass
|
||||||
self._process = None
|
self._process = None
|
||||||
self._started = False
|
self._started = False
|
||||||
self._stop_cpulimit()
|
self._stop_cpulimit()
|
||||||
|
Loading…
Reference in New Issue
Block a user