Skip to content

Commit 7deb0c0

Browse files
Vectorrentmryab
authored andcommitted
address race condition
1 parent 94c1bf4 commit 7deb0c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hivemind/dht/dht.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ def run_in_background(self, await_ready: bool = True, timeout: Optional[float] =
145145
is ready to process incoming requests or for :timeout: seconds max.
146146
"""
147147
self.start()
148+
self.get_visible_maddrs(True)
148149
if await_ready:
149150
self.wait_until_ready(timeout)
150151

0 commit comments

Comments
 (0)