1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00

Fix race condition when killing iouyap

Fix #387
This commit is contained in:
Julien Duponchelle 2016-01-04 10:42:46 +01:00
parent 137cf59e97
commit fab8b3f46f

View File

@ -676,7 +676,10 @@ class IOUVM(BaseVM):
except asyncio.TimeoutError: except asyncio.TimeoutError:
if self._iouyap_process.returncode is None: if self._iouyap_process.returncode is None:
log.warn("IOUYAP process {} is still running... killing it".format(self._iouyap_process.pid)) log.warn("IOUYAP process {} is still running... killing it".format(self._iouyap_process.pid))
try:
self._iouyap_process.kill() self._iouyap_process.kill()
except ProcessLookupError:
pass
self._iouyap_process = None self._iouyap_process = None
self._started = False self._started = False