From e3132f597cc1228314afa3d730d7dd1229187d90 Mon Sep 17 00:00:00 2001 From: ver33539 Date: Fri, 27 Oct 2023 12:27:48 +0200 Subject: [PATCH] fix: (Scan-uds-sessions): changed timeout from const value to shell arg timeout --- src/gallia/commands/scan/uds/sessions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallia/commands/scan/uds/sessions.py b/src/gallia/commands/scan/uds/sessions.py index 9e3b230cd..3803c7e47 100644 --- a/src/gallia/commands/scan/uds/sessions.py +++ b/src/gallia/commands/scan/uds/sessions.py @@ -167,7 +167,7 @@ async def main(self, args: Namespace) -> None: ) else: logger.info("Waiting for the ECU to recover…") - await self.ecu.wait_for_ecu(timeout=5) + await self.ecu.wait_for_ecu(timeout=args.timeout) except (asyncio.TimeoutError, ConnectionError): logger.warning( "Lost connection to the ECU after performing a reset. "