fix in peers refresh
This commit is contained in:
@@ -472,8 +472,8 @@ def torrent_peers(profile: dict, torrent_hash: str, retry_when_active: bool = Tr
|
||||
if not should_retry:
|
||||
return []
|
||||
# Note: rTorrent can expose transfer counters before p.multicall catches up; short retries avoid a misleading empty peer table.
|
||||
for _attempt in range(3):
|
||||
time.sleep(0.2)
|
||||
for _attempt in range(10):
|
||||
time.sleep(0.3)
|
||||
rows = _peer_rows(c, torrent_hash)
|
||||
if rows:
|
||||
return _normalize_peer_rows(rows)
|
||||
|
||||
Reference in New Issue
Block a user