[sysprof] libsysprof: and always emit finished



commit d3076d116189ef07fab7b27ffe8ffa122b30a22a
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jul 20 16:27:51 2022 -0700

    libsysprof: and always emit finished

 src/libsysprof/sysprof-governor-source.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libsysprof/sysprof-governor-source.c b/src/libsysprof/sysprof-governor-source.c
index a24aaa81..e22953f2 100644
--- a/src/libsysprof/sysprof-governor-source.c
+++ b/src/libsysprof/sysprof-governor-source.c
@@ -283,9 +283,9 @@ enable_paranoid_cb (GObject      *object,
   if (!sysprof_helpers_set_paranoid_finish (helpers, result, &old_governor, &error))
     g_debug ("Failed to change event_perf_paranoid: %s", error->message);
 
-  if (!self->disable_governor)
+  if (!self->disable_governor || self->old_governor == NULL)
     sysprof_source_emit_finished (SYSPROF_SOURCE (self));
-  else if (self->old_governor != NULL)
+  else
     sysprof_helpers_set_governor_async (helpers,
                                         self->old_governor,
                                         NULL,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]