mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-04-20 22:13:49 +00:00
ensure_contacts now wait for contacts to be there before continuing.
This commit is contained in:
parent
780a716cd1
commit
ec4a62c9ef
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue