mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-01 04:38:12 +00:00
Fix AttributeError: 'NoneType' object has no attribute 'returncode'
Fix #976
This commit is contained in:
parent
d2d5f003f8
commit
57cdef6b02
@ -199,7 +199,7 @@ class Hypervisor(UBridgeHypervisor):
|
|||||||
try:
|
try:
|
||||||
yield from wait_for_process_termination(self._process, timeout=3)
|
yield from wait_for_process_termination(self._process, timeout=3)
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
if self._process.returncode is None:
|
if self._process and self._process.returncode is None:
|
||||||
log.warn("uBridge process {} is still running... killing it".format(self._process.pid))
|
log.warn("uBridge process {} is still running... killing it".format(self._process.pid))
|
||||||
try:
|
try:
|
||||||
self._process.kill()
|
self._process.kill()
|
||||||
|
Loading…
Reference in New Issue
Block a user