[tracker] libtracker-miner: Fixed warning updating monitor hashtable with files
- From: Martyn James Russell <mr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-miner: Fixed warning updating monitor hashtable with files
- Date: Thu, 1 Oct 2009 16:41:59 +0000 (UTC)
commit c65c946076d302e8ff9b318b76ee2c29e1f19ece
Author: Martyn Russell <martyn lanedo com>
Date: Thu Oct 1 17:41:08 2009 +0100
libtracker-miner: Fixed warning updating monitor hashtable with files
src/libtracker-miner/tracker-monitor.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-monitor.c b/src/libtracker-miner/tracker-monitor.c
index 588033f..5d77ef6 100644
--- a/src/libtracker-miner/tracker-monitor.c
+++ b/src/libtracker-miner/tracker-monitor.c
@@ -1087,7 +1087,11 @@ libinotify_monitor_event_cb (INotifyHandle *handle,
other_file,
is_directory,
TRUE);
- tracker_monitor_update (monitor, file, other_file);
+
+ if (is_directory) {
+ tracker_monitor_update (monitor, file, other_file);
+ }
+
g_hash_table_remove (monitor->private->event_pairs,
GUINT_TO_POINTER (cookie));
}
@@ -1148,7 +1152,11 @@ libinotify_monitor_event_cb (INotifyHandle *handle,
file,
is_directory,
is_source_indexed);
- tracker_monitor_update (monitor, other_file, file);
+
+ if (is_directory) {
+ tracker_monitor_update (monitor, other_file, file);
+ }
+
g_hash_table_remove (monitor->private->event_pairs,
GUINT_TO_POINTER (cookie));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]