From 62d4f67f63afd117e6aca8600b18889f4cda4bc3 Mon Sep 17 00:00:00 2001 From: Florent Date: Fri, 3 Oct 2025 18:53:30 +0200 Subject: [PATCH] fix timeout in send_msg --- src/meshcore_cli/meshcore_cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/meshcore_cli/meshcore_cli.py b/src/meshcore_cli/meshcore_cli.py index ff4ad3a..2cb0085 100644 --- a/src/meshcore_cli/meshcore_cli.py +++ b/src/meshcore_cli/meshcore_cli.py @@ -863,10 +863,12 @@ async def send_msg (mc, contact, msg) : return res async def msg_ack (mc, contact, msg) : + timeout = 0 if not 'timeout' in contact else contact['timeout'] res = await mc.commands.send_msg_with_retry(contact, msg, max_attempts=msg_ack.max_attempts, flood_after=msg_ack.flood_after, - max_flood_attempts=msg_ack.max_flood_attempts) + max_flood_attempts=msg_ack.max_flood_attempts, + timeout=timeout) if not res is None and not res.type == EventType.ERROR: res.payload["expected_ack"] = res.payload["expected_ack"].hex() sent = res.payload.copy()