mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Should fix ProcessLookupError exceptions.
This commit is contained in:
1 parent
1610067eee
commit
223f3ee705
5 files changed
+21
-16
No files matched your search
@@ -488,9 +488,10 @@ class IOUVM(BaseVM):
|
||||
try:
|
||||
yield from gns3server.utils.asyncio.wait_for_process_termination(self._iou_process, timeout=3)
|
||||
except asyncio.TimeoutError:
|
||||
self._iou_process.kill()
|
||||
if self._iou_process.returncode is None:
|
||||
log.warn("IOU process {} is still running".format(self._iou_process.pid))
|
||||
log.warn("IOU process {} is still running... killing it".format(self._iou_process.pid))
|
||||
self._iou_process.kill()
|
||||
|
||||
self._iou_process = None
|
||||
|
||||
if self._iouyap_process is not None:
|
||||
@@ -498,11 +499,11 @@ class IOUVM(BaseVM):
|
||||
try:
|
||||
yield from gns3server.utils.asyncio.wait_for_process_termination(self._iouyap_process, timeout=3)
|
||||
except asyncio.TimeoutError:
|
||||
self._iouyap_process.kill()
|
||||
if self._iouyap_process.returncode is None:
|
||||
log.warn("IOUYAP process {} is still running".format(self._iouyap_process.pid))
|
||||
self._iouyap_process = None
|
||||
log.warn("IOUYAP process {} is still running... killing it".format(self._iouyap_process.pid))
|
||||
self._iouyap_process.kill()
|
||||
|
||||
self._iouyap_process = None
|
||||
self._started = False
|
||||
|
||||
def _terminate_process_iouyap(self):
|
||||
|
||||
Reference in new issue
Block a user