[librest/wip/teuf/gtask: 11/37] fixup! RestProxyCall: Use GTask
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librest/wip/teuf/gtask: 11/37] fixup! RestProxyCall: Use GTask
- Date: Thu, 16 Jun 2016 16:43:03 +0000 (UTC)
commit 20877ed07411ff96de67984af2e2696ed8bc4fc1
Author: Christophe Fergeau <cfergeau redhat com>
Date: Wed Jun 15 17:11:49 2016 +0200
fixup! RestProxyCall: Use GTask
was "rest-proxy-call: Properly g_task_return_error"
rest/rest-proxy-call.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/rest/rest-proxy-call.c b/rest/rest-proxy-call.c
index 341ac8d..09584eb 100644
--- a/rest/rest-proxy-call.c
+++ b/rest/rest-proxy-call.c
@@ -917,14 +917,12 @@ _call_message_call_completed_cb (SoupSession *session,
finish_call (call, message, &error);
- /*if (error != NULL)*/
- /*g_task_return_error (task, error);*/
- /*else*/
- g_assert (task);
- g_assert (G_IS_TASK (task));
+ if (error != NULL)
+ g_task_return_error (task, error);
+ else
g_task_return_boolean (task, TRUE);
- /*g_object_unref (task);*/
+ g_object_unref (task);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]