[tracker] tracker-store: always reset interrupt before any query/update



commit dee9f1b9562e6dea0909f7f94c25030f785c9829
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Wed Jun 30 17:15:46 2010 +0200

    tracker-store: always reset interrupt before any query/update

 src/tracker-store/tracker-store.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-store/tracker-store.c b/src/tracker-store/tracker-store.c
index 8b1c24c..729964a 100644
--- a/src/tracker-store/tracker-store.c
+++ b/src/tracker-store/tracker-store.c
@@ -444,15 +444,16 @@ pool_dispatch_cb (gpointer data,
 {
 	TrackerStorePrivate *private;
 	TrackerStoreTask *task;
+	GThread *running_thread = g_thread_self ();
 
 	private = user_data;
 	task = data;
 
+	tracker_data_manager_interrupt_thread_reset (running_thread);
+
 	if (task->type == TRACKER_STORE_TASK_TYPE_QUERY) {
 		TrackerDBCursor *cursor;
-		GThread *running_thread = g_thread_self ();
 
-		tracker_data_manager_interrupt_thread_reset (running_thread);
 		task->data.query.running_thread = running_thread;
 		cursor = tracker_data_query_sparql_cursor (task->data.query.query, &task->error);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]