From 056a1b143fc80fd3cd3cde04a0da7e1f30cb5db5 Mon Sep 17 00:00:00 2001 From: pictuga Date: Thu, 1 Oct 2020 00:04:36 +0200 Subject: [PATCH] crawler: autotrim: make ctrl+c working --- morss/crawler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/morss/crawler.py b/morss/crawler.py index 474db4b..54a7ce7 100644 --- a/morss/crawler.py +++ b/morss/crawler.py @@ -620,6 +620,7 @@ class BaseCache: self.trim() t = threading.Timer(delay, self.autotrim) + t.daemon = True t.start() def __contains__(self, url):