Fix bad performance with TimerFileWatcher

This commit is contained in:
2022-11-08 14:53:51 -08:00
parent 67cb808401
commit 98dc75e02f
4 changed files with 4 additions and 2 deletions
+1
View File
@@ -396,6 +396,7 @@ void timer_task_tree_set_data_path(TimerTaskTree *self, const char *path) {
if (self->fileWatcher) {
g_object_unref(self->fileWatcher);
}
self->fileWatcher = NULL;
self->fileWatcher = timer_file_watcher_new(path);
g_signal_connect(self->fileWatcher, "file-changed", G_CALLBACK(data_file_updated), self);
}