From 411a199e1b96a78c495d65bef10de2d8e17cf2c4 Mon Sep 17 00:00:00 2001 From: Florent Date: Mon, 28 Jul 2025 13:28:35 +0200 Subject: [PATCH] default timeout for get_msg --- src/meshcore/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meshcore/commands.py b/src/meshcore/commands.py index 7e055bb..516849c 100644 --- a/src/meshcore/commands.py +++ b/src/meshcore/commands.py @@ -333,7 +333,7 @@ class CommandHandler: async def change_contact_flags (self, contact, flags) -> Event: return await self.update_contact(contact, flags=flags) - async def get_msg(self, timeout: Optional[float] = 1) -> Event: + async def get_msg(self, timeout: Optional[float] = None) -> Event: logger.debug("Requesting pending messages") return await self.send(b"\x0A", [EventType.CONTACT_MSG_RECV, EventType.CHANNEL_MSG_RECV, EventType.ERROR, EventType.NO_MORE_MSGS], timeout)