[gnome-battery-bench] Force stop the test runner when preparing for sleep
- From: Christian Kellner <gicmo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-battery-bench] Force stop the test runner when preparing for sleep
- Date: Wed, 8 Mar 2017 14:04:15 +0000 (UTC)
commit f95a257711ae5994bf310f9eb2624f09e09b14b4
Author: Christian Kellner <gicmo gnome org>
Date: Tue Mar 7 17:52:42 2017 +0100
Force stop the test runner when preparing for sleep
We force stop the test runner, so the epilogue does not get played,
because it is very likely that the screen has already been locked by
gnome-shell and we would play the epilogue on the lock-screen.
src/application.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/application.c b/src/application.c
index 5f8637c..d7d4875 100644
--- a/src/application.c
+++ b/src/application.c
@@ -1014,11 +1014,16 @@ gbb_application_prepare_for_sleep (GDBusConnection *connection,
write_run_to_disk(application, run);
}
- /* stopping the run via gbb_test_runner_stop()
+ /* We force stop the test runner, so the epilogue does
+ * not get played, because it is very likely that the
+ * screen has already been locked by gnome-shell and
+ * we would play the epilogue on the lock-screen.
+ *
+ * stopping the run via gbb_test_runner_stop()
* -> on_runner_phase_changed() callback
* -> release inhibitor lock
*/
- gbb_test_runner_stop(runner);
+ gbb_test_runner_force_stop(runner);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]