Skip to content

Commit

Permalink
address race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Vectorrent authored and mryab committed Nov 4, 2024
1 parent 94c1bf4 commit 7deb0c0
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 @@ -145,6 +145,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 7deb0c0

Please sign in to comment.