mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +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))
|
||||
{
|
||||
sp_source_emit_failed (SP_SOURCE (self), error);
|
||||
return;
|
||||
if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED))
|
||||
{
|
||||
sp_source_emit_failed (SP_SOURCE (self), error);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
self->is_ready = TRUE;
|
||||
|
||||
Reference in New Issue
Block a user