From 0f02cff5f26a6bdaf536b09641eec4a965006347 Mon Sep 17 00:00:00 2001 From: grossmj Date: Thu, 25 May 2023 18:29:19 +0800 Subject: [PATCH] Catch ConnectionResetError when waiting for the wrap console --- gns3server/compute/base_node.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gns3server/compute/base_node.py b/gns3server/compute/base_node.py index 54dea0d6..a41a417a 100644 --- a/gns3server/compute/base_node.py +++ b/gns3server/compute/base_node.py @@ -409,7 +409,10 @@ class BaseNode: if self._wrapper_telnet_server: self._wrap_console_writer.close() if sys.version_info >= (3, 7, 0): - await self._wrap_console_writer.wait_closed() + try: + await self._wrap_console_writer.wait_closed() + except ConnectionResetError: + pass self._wrapper_telnet_server.close() await self._wrapper_telnet_server.wait_closed() self._wrapper_telnet_server = None