ppf: reset stale_count when content hash changes
This commit is contained in:
3
ppf.py
3
ppf.py
@@ -150,7 +150,8 @@ class Leechered(threading.Thread):
|
|||||||
self.status = 'ok'
|
self.status = 'ok'
|
||||||
return
|
return
|
||||||
|
|
||||||
# Content changed or first fetch - proceed with normal processing
|
# Content changed or first fetch - reset stale_count, proceed with normal processing
|
||||||
|
self.stale_count = 0
|
||||||
self.proxylist = [ proxy for proxy in unique if not fetch.is_known_proxy(proxy) ]
|
self.proxylist = [ proxy for proxy in unique if not fetch.is_known_proxy(proxy) ]
|
||||||
proxy_count = len(self.proxylist)
|
proxy_count = len(self.proxylist)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user