mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 07:30:54 +00:00
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:
@ -481,8 +481,11 @@ sysprof_local_profiler_authorize_cb (GObject *object,
|
|||||||
g_assert (G_IS_ASYNC_RESULT (result));
|
g_assert (G_IS_ASYNC_RESULT (result));
|
||||||
g_assert (SYSPROF_IS_LOCAL_PROFILER (self));
|
g_assert (SYSPROF_IS_LOCAL_PROFILER (self));
|
||||||
|
|
||||||
/* Ignore the result and try anyway */
|
if (!sysprof_helpers_authorize_finish (helpers, result, &error))
|
||||||
sysprof_helpers_authorize_finish (helpers, result, NULL);
|
{
|
||||||
|
sysprof_profiler_emit_failed (SYSPROF_PROFILER (self), error);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (priv->writer == NULL)
|
if (priv->writer == NULL)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user