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