mirror of
https://github.com/joshuaboniface/rffmpeg.git
synced 2026-01-23 10:25:33 +00:00
Fix repeating of bad hosts
We didn't skip bad hosts so it would loop forever.
This commit is contained in:
parent
5f5c21d7ff
commit
59c267c079
1 changed files with 2 additions and 0 deletions
|
|
@ -168,6 +168,8 @@ def get_target_host():
|
|||
lowest_count = 999
|
||||
target_host = None
|
||||
for rhost in remote_hosts:
|
||||
if rhost["bad"]:
|
||||
continue
|
||||
if rhost["weighted_count"] < lowest_count:
|
||||
lowest_count = rhost["weighted_count"]
|
||||
target_host = rhost["name"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue