[gnome-session/benzea/fix-screensaver-initial-sync: 2/2] presence: Fix error detection when syncing initial screensaver state
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-session/benzea/fix-screensaver-initial-sync: 2/2] presence: Fix error detection when syncing initial screensaver state
- Date: Tue, 27 Apr 2021 20:46:07 +0000 (UTC)
commit afb80a5762d0580ab970c7050b2daee23aa360cb
Author: Benjamin Berg <bberg redhat com>
Date: Tue Apr 27 22:43:46 2021 +0200
presence: Fix error detection when syncing initial screensaver state
The preview bugfix in commit f51153498246 was incorrect as it tested for
the variant to be non-NULL to detect an error (rather than NULL).
Fix this.
gnome-session/gsm-presence.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnome-session/gsm-presence.c b/gnome-session/gsm-presence.c
index 0e012c69..f4aa4889 100644
--- a/gnome-session/gsm-presence.c
+++ b/gnome-session/gsm-presence.c
@@ -239,7 +239,7 @@ screensaver_get_active_cb (GDBusProxy *screensaver_proxy,
gboolean is_active;
data = g_dbus_proxy_call_finish (screensaver_proxy, res, &error);
- if (data) {
+ if (!data) {
if (error) {
g_warning ("Could not retrieve current screensaver active state: %s",
error->message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]