diff --git a/src/main/folder-watcher.js b/src/main/folder-watcher.js index b8421d0a..d628d35b 100644 --- a/src/main/folder-watcher.js +++ b/src/main/folder-watcher.js @@ -25,7 +25,10 @@ class FolderWatcher { const glob = `${torrentsFolderPath}/**/*.torrent` log('Folder Watcher: watching: ', glob) - const options = {ignoreInitial: true} + const options = { + ignoreInitial: true, + awaitWriteFinish: true + } this.watcher = chokidar.watch(glob, options) this.watcher .on('add', (path) => {