Hi,

I just took a look at the source and found the problem; see the
attached patch.

regards,
Stefan
Description: fix hosts stuck in refresh
 G_FILE_MONITOR_SEND_MOVED might trigger G_FILE_MONITOR_EVENT_MOVED instead
 of G_FILE_MONITOR_EVENT_DELETED + G_FILE_MONITOR_EVENT_CREATED, and MOVED
 is not handled by stats_changed().
Author: Stefan Bühler <stbueh...@lighttpd.net>
Bug-Debian: https://bugs.debian.org/801994
--- apt-dater-1.0.2+git20150804.orig/src/stats.c
+++ apt-dater-1.0.2+git20150804/src/stats.c
@@ -64,7 +64,7 @@ stats_changed(GFileMonitor     *monitor,
 
 void stats_initialize(HostNode *n) {
   GFile *path = g_file_new_for_path(n->statsfile);
-  n->mon_stats = g_file_monitor(path, G_FILE_MONITOR_SEND_MOVED, NULL, NULL);
+  n->mon_stats = g_file_monitor(path, G_FILE_MONITOR_NONE, NULL, NULL);
   g_object_unref(path);
 
   g_signal_connect(n->mon_stats, "changed", G_CALLBACK(stats_changed), n);

Reply via email to