Some filesystems have mtime=0 (Seafile), so add check for stamp before

letting the scanner exit with just a db ping
This commit is contained in:
ejurgensen 2014-05-21 22:31:05 +02:00
parent 519a673503
commit aa8344d14d

View File

@ -477,7 +477,7 @@ filescanner_process_media(char *path, time_t mtime, off_t size, int type, struct
db_file_stamp_bypath(path, &stamp, &id);
if (stamp >= mtime)
if (stamp && (stamp >= mtime))
{
db_file_ping(id);
return;