[gnome-online-accounts] daemon: Don't rely on G_DISABLE_ASSERT being undefined
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] daemon: Don't rely on G_DISABLE_ASSERT being undefined
- Date: Fri, 10 Mar 2017 17:28:31 +0000 (UTC)
commit deb4bd153e85d581cc32ea27d1535913703432b1
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 16abc82..89b6019 100644
--- a/src/daemon/goadaemon.c
+++ b/src/daemon/goadaemon.c
@@ -1496,6 +1496,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);
@@ -1504,7 +1505,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]