Commit 8b882ccf authored by Carlos Garnacho's avatar Carlos Garnacho

libtracker-miner: Fix thinko in condition

use_changed_event refers to FAM and the inability of the GIO monitor
implementation to send CHANGES_DONE_HINT for it. This means we have
to forward CREATED/CHANGED events immediately if we have to rely on
FAM-backed monitors.

However the condition handling this was inverted, which meant we
sucked with file monitors that honored CHANGES_DONE_HINT, and
completely broke updates on FAM monitors.

Closes: tracker-miners#36
parent b43dce5e
......@@ -694,7 +694,7 @@ monitor_event_cb (GFileMonitor *file_monitor,
switch (event_type) {
case G_FILE_MONITOR_EVENT_CREATED:
case G_FILE_MONITOR_EVENT_CHANGED:
if (priv->use_changed_event) {
if (!priv->use_changed_event) {
cache_event (monitor, file, event_type);
} else {
emit_signal_for_event (monitor, event_type,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment