Skip to content

Commit

Permalink
[library] review - repalce watches_clear() with inotify_rm_watch/db_w…
Browse files Browse the repository at this point in the history
…atch_delete_bywd
  • Loading branch information
whatdoineed2do/Ray committed Nov 23, 2023
1 parent ff78733 commit 53899f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/library/filescanner.c
Original file line number Diff line number Diff line change
Expand Up @@ -1786,7 +1786,8 @@ filescanner_write_metadata(const char *virtual_path, const uint32_t *id, uint32_
ret = db_watch_get_bypath(&wi, inotify_path);
if (ret == 0)
{
watches_clear(wi.wd, wi.path);
inotify_rm_watch(inofd, wi.wd);
db_watch_delete_bywd(wi.wd);
free_wi(&wi, 1);
}

Expand Down

0 comments on commit 53899f3

Please sign in to comment.