[tracker-miners/wip/carlosg/test: 1/2] tracker-control: Add missing return value to DBus skeleton method




commit 81505d1e2eef85545d3ab982701dea09d658b634
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Oct 23 15:36:39 2020 +0200

    tracker-control: Add missing return value to DBus skeleton method
    
    Otherwise shit randomly breaks whenever IndexLocation calls are involved.
    As seen in CI.

 src/tracker-control/tracker-miner-files-index.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/tracker-control/tracker-miner-files-index.c b/src/tracker-control/tracker-miner-files-index.c
index 75f15d2ed..ee5e586b6 100644
--- a/src/tracker-control/tracker-miner-files-index.c
+++ b/src/tracker-control/tracker-miner-files-index.c
@@ -168,7 +168,7 @@ update_indexed_files (TrackerMinerFilesIndex *index)
                                                              (const gchar * const *) 
priv->indexed_files->data);
 }
 
-static void
+static gboolean
 tracker_miner_files_index_handle_index_location (TrackerDBusMinerFilesIndex *skeleton,
                                                  GDBusMethodInvocation      *invocation,
                                                  const gchar                *file_uri,
@@ -183,8 +183,6 @@ tracker_miner_files_index_handle_index_location (TrackerDBusMinerFilesIndex *ske
 
        priv = TRACKER_MINER_FILES_INDEX_GET_PRIVATE (index);
 
-       tracker_gdbus_async_return_if_fail (file_uri != NULL, invocation);
-
        request = tracker_g_dbus_request_begin (invocation, "%s(uri:'%s')", __FUNCTION__, file_uri);
 
        file = g_file_new_for_uri (file_uri);
@@ -205,6 +203,8 @@ tracker_miner_files_index_handle_index_location (TrackerDBusMinerFilesIndex *ske
        g_dbus_method_invocation_return_value (invocation, NULL);
 
        g_object_unref (file);
+
+       return TRUE;
 }
 
 static void


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