[gnome-software] Do not clear the offline-update trigger if rebooting succeeded



commit 81cf6bf80aae27179afaa6b7b3b44616d3bcf95b
Author: Richard Hughes <richard hughsie com>
Date:   Tue Sep 17 16:43:57 2013 +0100

    Do not clear the offline-update trigger if rebooting succeeded

 src/gs-shell-updates.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-shell-updates.c b/src/gs-shell-updates.c
index 40db160..fa563e4 100644
--- a/src/gs-shell-updates.c
+++ b/src/gs-shell-updates.c
@@ -412,8 +412,10 @@ reboot_failed (GObject      *source,
        GError *error = NULL;
 
        ret = g_dbus_connection_call_finish (G_DBUS_CONNECTION (source), res, &error);
-       if (ret)
+       if (ret) {
                g_variant_unref (ret);
+               return;
+       }
 
        if (error) {
                g_warning ("Calling org.gnome.SessionManager.Reboot failed: %s\n", error->message);


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