parent
d6dc5e8d01
commit
b7c1a693eb
@ -197,6 +197,7 @@ class PeerManager(object):
|
|||||||
pause = WAKEUP_SECS * 2 ** peer.try_count
|
pause = WAKEUP_SECS * 2 ** peer.try_count
|
||||||
async with ignore_after(pause):
|
async with ignore_after(pause):
|
||||||
await peer.retry_event.wait()
|
await peer.retry_event.wait()
|
||||||
|
peer.retry_event.clear()
|
||||||
|
|
||||||
async def _should_drop_peer(self, peer):
|
async def _should_drop_peer(self, peer):
|
||||||
peer.try_count += 1
|
peer.try_count += 1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user