mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-26 00:38:10 +00:00
Fixes iouyap shutdown.
This commit is contained in:
parent
8d02f464c5
commit
b393948b67
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user