Skip to content
Permalink
Browse files

fix(server): handle errors from chokidar

  • Loading branch information...
mycoboco committed Oct 4, 2019
1 parent 3cb531d commit 1183dfca9e418afe41c0ae3588b4a7af7371719e
Showing with 6 additions and 4 deletions.
  1. +6 −4 server/lib/mp3.js
@@ -52,10 +52,12 @@ function init(_db, _api, _conf) {
usePolling: false,
ignorePermissionErrors: true
})
watch.on('all', function (event, f) {
log.info('change detected on '+f+'; rescan scheduled')
needRescan = true
})
watch
.on('all', function (event, f) {
log.info('change detected on '+f+'; rescan scheduled')
needRescan = true
})
.on('error', err => log.error(err))

log.info('rescan scheduled with '+util.inspect(conf.mp3))
conf.mp3.single = true

0 comments on commit 1183dfc

Please sign in to comment.
You can’t perform that action at this time.