[gnome-online-accounts/gnome-3-22] daemon: Don't rely on G_DISABLE_ASSERT being undefined



commit bb4090fdbfab5d602deb80c9ae4eddf65cfc2859
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Mar 9 20:18:51 2017 +0100

    daemon: Don't rely on G_DISABLE_ASSERT being undefined
    
    https://bugzilla.gnome.org/show_bug.cgi?id=779548

 src/daemon/goadaemon.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/daemon/goadaemon.c b/src/daemon/goadaemon.c
index 4b21ed9..da139e3 100644
--- a/src/daemon/goadaemon.c
+++ b/src/daemon/goadaemon.c
@@ -1500,6 +1500,7 @@ static void
 ensure_credentials_queue_collector (GObject *source_object, GAsyncResult *res, gpointer user_data)
 {
   GTask *task = G_TASK (user_data);
+  GTask *task_queued;
   GoaDaemon *self;
   GoaAccount *account;
   GoaProvider *provider = GOA_PROVIDER (source_object);
@@ -1508,7 +1509,9 @@ ensure_credentials_queue_collector (GObject *source_object, GAsyncResult *res, g
   gint expires_in;
 
   self = GOA_DAEMON (g_task_get_source_object (task));
-  g_assert (task == G_TASK (g_queue_pop_head (self->ensure_credentials_queue)));
+
+  task_queued = G_TASK (g_queue_pop_head (self->ensure_credentials_queue));
+  g_assert (task == task_queued);
 
   data = g_task_get_task_data (task);
   account = goa_object_peek_account (data->object);


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