diff --git a/ppf.py b/ppf.py index a4d196a..baffbd6 100644 --- a/ppf.py +++ b/ppf.py @@ -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')