X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fgraph_list.c;h=02c7de8db75f0b2c0fad8042b0cb7abf498a4ae1;hb=eadd1b625c44ad93766ca43372a961a52ec263e9;hp=60cb82a925f0abc1751840ee32347fa8d1231dad;hpb=97f299a09ad5bb7a27f5d27afb9f90a5ffd1e218;p=collection4.git diff --git a/src/graph_list.c b/src/graph_list.c index 60cb82a..02c7de8 100644 --- a/src/graph_list.c +++ b/src/graph_list.c @@ -1087,6 +1087,11 @@ int gl_update (_Bool request_served) /* {{{ */ if ((status != 0) || ((gl_last_update + UPDATE_INTERVAL) < now)) { + /* Clear state */ + gl_clear_instances (); + gl_clear_hosts (); + gl_destroy (&gl_dynamic, &gl_dynamic_num); + status = fs_scan (/* callback = */ gl_register_file, /* user data = */ NULL); gl_last_update = now;