From e0a2553be4f37b5b408d0cfe3730fb7596593473 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 4 Jul 2016 14:46:06 +0200 Subject: [PATCH] Fix a rare crash in IOU Fix #604 --- gns3server/modules/iou/iou_vm.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gns3server/modules/iou/iou_vm.py b/gns3server/modules/iou/iou_vm.py index 8bbd8bb8..b6dd548f 100644 --- a/gns3server/modules/iou/iou_vm.py +++ b/gns3server/modules/iou/iou_vm.py @@ -663,7 +663,10 @@ class IOUVM(BaseVM): except asyncio.TimeoutError: if self._iou_process.returncode is None: log.warn("IOU process {} is still running... killing it".format(self._iou_process.pid)) - self._iou_process.kill() + try: + self._iou_process.kill() + except ProcessLookupError: + pass self._iou_process = None if self.is_iouyap_running():