From 1851f39b8aaff294cda076d5599c3e90f8ee9080 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Tue, 30 May 2023 16:05:01 -0700 Subject: [PATCH] libsysprof-profile: use dex_bus_get() This allows us to remove the synchronous call here from the fiber calling into this API. --- src/libsysprof-profile/sysprof-instrument.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsysprof-profile/sysprof-instrument.c b/src/libsysprof-profile/sysprof-instrument.c index d2c1f27f..72ff5f09 100644 --- a/src/libsysprof-profile/sysprof-instrument.c +++ b/src/libsysprof-profile/sysprof-instrument.c @@ -118,7 +118,7 @@ _sysprof_instruments_acquire_policy (GPtrArray *instruments, /* Ensure we have access to the System D-Bus so that we can get * access to sysprofd for system information. */ - if (!(connection = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, &error))) + if (!(connection = dex_await_object (dex_bus_get (G_BUS_TYPE_SYSTEM), &error))) return dex_future_new_for_error (g_steal_pointer (&error)); /* First ensure that all our required policy have been acquired on