libsysprof: more fallbacks for bad proxy

This commit is contained in:
Christian Hergert
2019-05-18 18:29:47 -07:00
parent af07f1bbff
commit 5718b5fb20

View File

@ -209,11 +209,15 @@ sysprof_helpers_list_processes_async (SysprofHelpers *self,
task = g_task_new (self, cancellable, callback, user_data);
g_task_set_source_tag (task, sysprof_helpers_list_processes_async);
if (!fail_if_no_proxy (self, task))
if (self->proxy != NULL)
ipc_service_call_list_processes (self->proxy,
cancellable,
(GAsyncReadyCallback) sysprof_helpers_list_processes_cb,
g_steal_pointer (&task));
else
helpers_list_processes_async (cancellable,
sysprof_helpers_list_processes_local_cb,
g_steal_pointer (&task));
}
gboolean