From ec4a62c9efc0c5e203e31388edaf71d5d9c58439 Mon Sep 17 00:00:00 2001 From: Florent Date: Sun, 19 Oct 2025 19:12:05 +0200 Subject: [PATCH] ensure_contacts now wait for contacts to be there before continuing. --- pyproject.toml | 2 +- src/meshcore/meshcore.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 6cbeee6..adbd93c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "meshcore" -version = "2.1.10" +version = "2.1.11" authors = [ { name="Florent de Lamotte", email="florent@frizoncorrea.fr" }, { name="Alex Wolden", email="awolden@gmail.com" }, diff --git a/src/meshcore/meshcore.py b/src/meshcore/meshcore.py index 17aba46..4e07e2b 100644 --- a/src/meshcore/meshcore.py +++ b/src/meshcore/meshcore.py @@ -464,5 +464,6 @@ 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