mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +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 (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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user