[tracker/dbus-fd-experiment: 13/13] Steroids server: Properly send error code on error



commit dc1a2c7f890fd15c0503781eeaa85f0dada8f661
Author: Adrien Bustany <abustany gnome org>
Date:   Mon May 24 10:10:05 2010 -0400

    Steroids server: Properly send error code on error

 src/tracker-store/tracker-steroids.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-store/tracker-steroids.c b/src/tracker-store/tracker-steroids.c
index ae9a8f3..bf2452f 100644
--- a/src/tracker-store/tracker-steroids.c
+++ b/src/tracker-store/tracker-steroids.c
@@ -194,6 +194,8 @@ query_inthread (TrackerDBCursor *cursor,
 	const gchar **column_data;
 
 	if (error) {
+		client_write_int (info, STEROIDS_RC_ERROR);
+		page_flush (info);
 		ptr->error = g_error_copy (error);
 		return ptr;
 	}



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