summaryrefslogtreecommitdiff
path: root/rest/rest-proxy.c
diff options
context:
space:
mode:
authorRoss Burton <ross@linux.intel.com>2010-05-14 10:34:36 +0100
committerRoss Burton <ross@linux.intel.com>2010-05-14 10:34:36 +0100
commitd7d4d52ca31a8101ce9ce125449b5ff58e47d501 (patch)
tree984a791f3a69c29a56cb15526b8cc4b8c8969dc6 /rest/rest-proxy.c
parent1da71cc919d1900c1f4c67c1ae722ed9cf505271 (diff)
downloadlibrest-d7d4d52ca31a8101ce9ce125449b5ff58e47d501.tar.gz
Use the session callback instead of finished (BMC#842)
Use the completed callback in soup_session_queue_message instead of connecting to finished on the message itself. I'm not entirely why the behaviour is different but this fixes #842 where an async call make inside another async call would end up with the original message "finishing" again, causing infinite loops.
Diffstat (limited to 'rest/rest-proxy.c')
-rw-r--r--rest/rest-proxy.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/rest/rest-proxy.c b/rest/rest-proxy.c
index 92a1bfc..a59b260 100644
--- a/rest/rest-proxy.c
+++ b/rest/rest-proxy.c
@@ -433,7 +433,9 @@ rest_proxy_simple_run (RestProxy *proxy,
void
_rest_proxy_queue_message (RestProxy *proxy,
- SoupMessage *message)
+ SoupMessage *message,
+ SoupSessionCallback callback,
+ gpointer user_data)
{
RestProxyPrivate *priv;
@@ -443,9 +445,9 @@ _rest_proxy_queue_message (RestProxy *proxy,
priv = GET_PRIVATE (proxy);
soup_session_queue_message (priv->session,
- message,
- NULL,
- NULL);
+ message,
+ callback,
+ user_data);
}
void