diff --git a/pyproject.toml b/pyproject.toml index adbd93c..8182f46 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "meshcore" -version = "2.1.11" +version = "2.1.12" authors = [ { name="Florent de Lamotte", email="florent@frizoncorrea.fr" }, { name="Alex Wolden", email="awolden@gmail.com" }, diff --git a/src/meshcore/commands/contact.py b/src/meshcore/commands/contact.py index ca26eca..00617ae 100644 --- a/src/meshcore/commands/contact.py +++ b/src/meshcore/commands/contact.py @@ -13,7 +13,7 @@ class ContactCommands(CommandHandlerBase): data = b"\x04" if lastmod > 0: data = data + lastmod.to_bytes(4, "little") - return await self.send(data, [EventType.CONTACTS, EventType.ERROR]) + return await self.send(data, [EventType.CONTACTS, EventType.ERROR], timeout=30) async def reset_path(self, key: DestinationType) -> Event: key_bytes = _validate_destination(key, prefix_length=32) diff --git a/src/meshcore/meshcore.py b/src/meshcore/meshcore.py index 4e07e2b..17aba46 100644 --- a/src/meshcore/meshcore.py +++ b/src/meshcore/meshcore.py @@ -464,6 +464,5 @@ class MeshCore: """Ensure contacts are fetched""" if not self._contacts or (follow and self._contacts_dirty): await self.commands.get_contacts(lastmod=self._lastmod) - await self.wait_for_event(EventType.CONTACTS, timeout=30) # contact list can be huge return True return False