diff --git a/extractor.py b/extractor.py index 9122b8b..0e5aa2a 100644 --- a/extractor.py +++ b/extractor.py @@ -175,8 +175,9 @@ class Handler(FileSystemEventHandler): def __init__(self, args): self.args = args self.isWaiting = False - self.timer = threading.Timer(0.5, self.doTheWork) self.lock = threading.Lock() + self.timer = threading.Timer(0.5, self.doTheWork) + self.timer.start() def on_created(self, event): self.handle(event)