[gnome-flashback] session: always emit session-ready signal
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] session: always emit session-ready signal
- Date: Sun, 15 Mar 2020 08:07:50 +0000 (UTC)
commit 7c225fd0eb06b93e084fc95cdc0872d9e62d38ed
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Mar 15 10:04:12 2020 +0200
session: always emit session-ready signal
https://gitlab.gnome.org/GNOME/gnome-flashback/issues/37
gnome-flashback/gf-session.c | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/gnome-flashback/gf-session.c b/gnome-flashback/gf-session.c
index 2ceb85f..6e6065c 100644
--- a/gnome-flashback/gf-session.c
+++ b/gnome-flashback/gf-session.c
@@ -215,14 +215,20 @@ is_session_running_cb (GObject *source_object,
if (error != NULL)
{
- if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+ if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+ {
+ g_error_free (error);
+ return;
+ }
+ else
{
+ is_session_running = TRUE;
+
g_warning ("Failed to check if session has entered the Running phase: %s",
error->message);
- }
- g_error_free (error);
- return;
+ g_error_free (error);
+ }
}
self = GF_SESSION (user_data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]