libsysprof: cancel if we fail auth

To not do this would leave us in a very bad loop asking for too many
pieces of information.
This commit is contained in:
Christian Hergert
2019-05-10 14:58:34 -07:00
parent 0fe8a688d1
commit c51e12c497

View File

@ -481,8 +481,11 @@ sysprof_local_profiler_authorize_cb (GObject *object,
g_assert (G_IS_ASYNC_RESULT (result));
g_assert (SYSPROF_IS_LOCAL_PROFILER (self));
/* Ignore the result and try anyway */
sysprof_helpers_authorize_finish (helpers, result, NULL);
if (!sysprof_helpers_authorize_finish (helpers, result, &error))
{
sysprof_profiler_emit_failed (SYSPROF_PROFILER (self), error);
return;
}
if (priv->writer == NULL)
{