[librest/wip/baedert/gtask: 13/25] rest-proxy-call: Properly	g_task_return_error
- From: Timm Bäder <baedert src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [librest/wip/baedert/gtask: 13/25] rest-proxy-call: Properly	g_task_return_error
 
- Date: Sun,  8 May 2016 19:10:29 +0000 (UTC)
 
commit 811fb413c5cc7d5dd20dc05d55f8da3baada737e
Author: Timm Bäder <mail baedert org>
Date:   Sat Apr 23 12:48:16 2016 +0200
    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 6a96e1a..7cd4c0d 100644
--- a/rest/rest-proxy-call.c
+++ b/rest/rest-proxy-call.c
@@ -921,14 +921,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]