Skip to content

Commit

Permalink
address race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Vectorrent committed Oct 26, 2024
1 parent 65d7be5 commit d2a6419
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hivemind/dht/dht.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def run_in_background(self, await_ready: bool = True, timeout: Optional[float] =
is ready to process incoming requests or for :timeout: seconds max.
"""
self.start()
self.get_visible_maddrs(True)
if await_ready:
self.wait_until_ready(timeout)

Expand Down

0 comments on commit d2a6419

Please sign in to comment.