diff --git a/pw_upload.py b/pw_upload.py index 78cede2..2d9882e 100755 --- a/pw_upload.py +++ b/pw_upload.py @@ -172,7 +172,7 @@ def watch(self): raise Exception('Not initialized') while not should_stop: - for event in self.inotify.read(timeout=2): + for event in self.inotify.read(timeout=2000): if event.mask & inotify.flags.IGNORED or \ event.wd < 0 or \ event.wd not in self.wd2name: