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

Fixes iouyap shutdown.

This commit is contained in:
Jeremy 2015-02-19 16:58:44 -07:00
parent 8d02f464c5
commit b393948b67

View File

@ -474,7 +474,6 @@ class IOUVM(BaseVM):
self._iou_process.kill()
if self._iou_process.returncode is None:
log.warn("IOU process {} is still running".format(self._iou_process.pid))
self._iou_process = None
if self._iouyap_process is not None:
@ -482,9 +481,10 @@ class IOUVM(BaseVM):
try:
yield from asyncio.wait_for(self._iouyap_process.wait(), timeout=3)
except asyncio.TimeoutError:
self._iou_process.kill()
self._iouyap_process.kill()
if self._iouyap_process.returncode is None:
log.warn("IOUYAP process {} is still running".format(self._iou_process.pid))
log.warn("IOUYAP process {} is still running".format(self._iouyap_process.pid))
self._iouyap_process = None
self._started = False