summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2016-04-23 12:48:16 +0200
committerTimm Bäder <mail@baedert.org>2016-04-23 12:48:16 +0200
commit811fb413c5cc7d5dd20dc05d55f8da3baada737e (patch)
tree7f472c0215f24d52f046b1d1961c813d12a38fae
parenta5feedb99d7e89193e3f5ca3d86e6e90ca18bf83 (diff)
downloadlibrest-811fb413c5cc7d5dd20dc05d55f8da3baada737e.tar.gz
rest-proxy-call: Properly g_task_return_error
-rw-r--r--rest/rest-proxy-call.c10
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);
}
/**