From: Florian Forster Date: Sun, 15 Aug 2010 10:52:57 +0000 (+0200) Subject: src/graph_list.c: Clear instances (again) before scanning the file system. X-Git-Tag: v4.0.0~58 X-Git-Url: https://git.octo.it/?p=collection4.git;a=commitdiff_plain;h=e9eb34b5312bf4f2ba915846ccaa35a825585980 src/graph_list.c: Clear instances (again) before scanning the file system. --- 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;