mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-04-20 22:13:49 +00:00
default timeout for get_msg
This commit is contained in:
parent
69726d2690
commit
411a199e1b
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue