ppf: skip URL cycling when ppf.threads = 0

This commit is contained in:
Username
2026-02-18 00:28:37 +01:00
parent 24d6f345f6
commit 98c2e74412

5
ppf.py
View File

@@ -954,6 +954,11 @@ def main():
last_skip_log = 0
while True:
try:
# When ppf threads = 0, skip URL fetching (workers handle it via /api/claim-urls)
if config.ppf.threads == 0:
time.sleep(60)
continue
time.sleep(random.random()/10)
if (time.time() - statusmsg) > 180:
_log('running %d thread(s) over %d' % (len(threads), config.ppf.threads), 'ppf')