This commit is contained in:
ckanibal
2019-11-07 14:32:39 +01:00
committed by GitHub

View File

@@ -175,8 +175,9 @@ class Handler(FileSystemEventHandler):
def __init__(self, args): def __init__(self, args):
self.args = args self.args = args
self.isWaiting = False self.isWaiting = False
self.timer = threading.Timer(0.5, self.doTheWork)
self.lock = threading.Lock() self.lock = threading.Lock()
self.timer = threading.Timer(0.5, self.doTheWork)
self.timer.start()
def on_created(self, event): def on_created(self, event):
self.handle(event) self.handle(event)