mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
Sleep 1 sec in mininode's wait_for_disconnect (#3538)
* Sleep 1 sec in mininode's wait_for_disconnect * Add a comment about a future backport that might potentially fix related issues
This commit is contained in:
parent
737ed479bc
commit
ed057dadd0
@ -373,6 +373,8 @@ class P2PInterface(P2PConnection):
|
||||
def wait_for_disconnect(self, timeout=60):
|
||||
test_function = lambda: self.state != "connected"
|
||||
wait_until(test_function, timeout=timeout, lock=mininode_lock)
|
||||
# This is a hack. The related issues should be fixed by bitcoin 14119 and 14457.
|
||||
time.sleep(1)
|
||||
|
||||
# Message receiving helper methods
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user