fix in peers refresh

This commit is contained in:
Mateusz Gruszczyński
2026-06-09 11:34:24 +02:00
parent b2cede7b63
commit 2d37ccbec4
7 changed files with 11 additions and 10 deletions
+2 -2
View File
@@ -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)