mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
perf: ignore not-supported failures
If the pre-authorize fails due to lacking support for sysprofd, that is fine, we can fail later on if authorization was required.
This commit is contained in:
@ -460,8 +460,11 @@ sp_perf_source_authorize_cb (GObject *object,
|
|||||||
|
|
||||||
if (!sp_perf_counter_authorize_finish (result, &error))
|
if (!sp_perf_counter_authorize_finish (result, &error))
|
||||||
{
|
{
|
||||||
sp_source_emit_failed (SP_SOURCE (self), error);
|
if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED))
|
||||||
return;
|
{
|
||||||
|
sp_source_emit_failed (SP_SOURCE (self), error);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
self->is_ready = TRUE;
|
self->is_ready = TRUE;
|
||||||
|
|||||||
Reference in New Issue
Block a user