Clear watches from db on init-rescan

This commit is contained in:
ejurgensen 2014-05-14 21:39:25 +02:00
parent 915719f0f8
commit dafc748bfd

View File

@ -712,6 +712,7 @@ process_file(char *file, time_t mtime, off_t size, int type, int flags)
{ {
DPRINTF(E_LOG, L_SCAN, "Forcing startup rescan, found init-rescan file: %s\n", file); DPRINTF(E_LOG, L_SCAN, "Forcing startup rescan, found init-rescan file: %s\n", file);
inofd_event_unset(); // Clears all inotify watches inofd_event_unset(); // Clears all inotify watches
db_watch_clear();
inofd_event_set(); inofd_event_set();
bulk_scan(F_SCAN_BULK | F_SCAN_RESCAN); bulk_scan(F_SCAN_BULK | F_SCAN_RESCAN);