crawler: autotrim: make ctrl+c working
This commit is contained in:
parent
eed949736a
commit
056a1b143f
@ -620,6 +620,7 @@ class BaseCache:
|
|||||||
self.trim()
|
self.trim()
|
||||||
|
|
||||||
t = threading.Timer(delay, self.autotrim)
|
t = threading.Timer(delay, self.autotrim)
|
||||||
|
t.daemon = True
|
||||||
t.start()
|
t.start()
|
||||||
|
|
||||||
def __contains__(self, url):
|
def __contains__(self, url):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user