libmm-glib,manager: use g_async_initable_new_finish() explicitly
We're running g_async_initable_new_async() ourselves in mm_manager_new(), so our finish() method should call g_async_initable_new_finish() explicitly. There's no change in the logic here, as the generated mm_gdbus_object_manager_client_new_finish() was already doing this implicitly.
This commit is contained in:
@@ -157,7 +157,13 @@ MMManager *
|
||||
mm_manager_new_finish (GAsyncResult *res,
|
||||
GError **error)
|
||||
{
|
||||
return MM_MANAGER (mm_gdbus_object_manager_client_new_finish (res, error));
|
||||
GObject *ret;
|
||||
GObject *source_object;
|
||||
|
||||
source_object = g_async_result_get_source_object (res);
|
||||
ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
|
||||
g_object_unref (source_object);
|
||||
return MM_MANAGER (ret);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user