From 07dc728bfe524af14d0de0ecae3afd7f01a5ef05 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Thu, 25 May 2023 17:24:33 -0700 Subject: [PATCH] libsysprof-profile: change state on stop We will need some more checks in here later on once we're doing things with the instruments, but this gets the job done for now. --- src/libsysprof-profile/sysprof-recording.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libsysprof-profile/sysprof-recording.c b/src/libsysprof-profile/sysprof-recording.c index 85be25ca..5188ab1a 100644 --- a/src/libsysprof-profile/sysprof-recording.c +++ b/src/libsysprof-profile/sysprof-recording.c @@ -226,6 +226,7 @@ sysprof_recording_stop (SysprofRecording *self) { g_return_if_fail (SYSPROF_IS_RECORDING (self)); + sysprof_recording_set_state (self, SYSPROF_RECORDING_STATE_FINISHED); } void