[tracker/class-signal] tracker-store: Let's always first remove pending then ready, for events and writeback
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/class-signal] tracker-store: Let's always first remove pending then ready, for events and writeback
- Date: Fri, 27 Aug 2010 11:30:38 +0000 (UTC)
commit a99bdfbe3899c4543669e3b5b612dbf6efbd2f95
Author: Philip Van Hoof <philip codeminded be>
Date: Fri Aug 27 13:30:12 2010 +0200
tracker-store: Let's always first remove pending then ready, for events and writeback
src/tracker-store/tracker-events.c | 3 ++-
src/tracker-store/tracker-writeback.c | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-store/tracker-events.c b/src/tracker-store/tracker-events.c
index 8de62af..0175675 100644
--- a/src/tracker-store/tracker-events.c
+++ b/src/tracker-store/tracker-events.c
@@ -225,11 +225,12 @@ free_private (EventsPrivate *private)
while (g_hash_table_iter_next (&iter, &key, &value)) {
TrackerClass *class = key;
+ tracker_class_reset_pending_events (class);
+
/* Perhaps hurry an emit of the ready events here? We're shutting down,
* so I guess we're not required to do that here ... ? */
tracker_class_reset_ready_events (class);
- tracker_class_reset_pending_events (class);
}
g_hash_table_unref (private->allowances);
diff --git a/src/tracker-store/tracker-writeback.c b/src/tracker-store/tracker-writeback.c
index 7a32bec..bdd02d5 100644
--- a/src/tracker-store/tracker-writeback.c
+++ b/src/tracker-store/tracker-writeback.c
@@ -207,11 +207,12 @@ tracker_writeback_shutdown (void)
{
g_return_if_fail (private != NULL);
+ tracker_writeback_reset_pending ();
+
/* Perhaps hurry an emit of the ready events here? We're shutting down,
* so I guess we're not required to do that here ... ? */
tracker_writeback_reset_ready ();
- tracker_writeback_reset_pending ();
free_private (private);
private = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]