crawler: autotrim: make ctrl+c working
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…
Reference in New Issue