diff options
author | Ross Burton <ross@linux.intel.com> | 2010-05-14 10:34:36 +0100 |
---|---|---|
committer | Ross Burton <ross@linux.intel.com> | 2010-05-14 10:34:36 +0100 |
commit | d7d4d52ca31a8101ce9ce125449b5ff58e47d501 (patch) | |
tree | 984a791f3a69c29a56cb15526b8cc4b8c8969dc6 /rest/rest-private.h | |
parent | 1da71cc919d1900c1f4c67c1ae722ed9cf505271 (diff) | |
download | librest-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-private.h')
-rw-r--r-- | rest/rest-private.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rest/rest-private.h b/rest/rest-private.h index 5fb25b4..400ead2 100644 --- a/rest/rest-private.h +++ b/rest/rest-private.h @@ -51,7 +51,9 @@ void _rest_setup_debugging (void); gboolean _rest_proxy_get_binding_required (RestProxy *proxy); const gchar *_rest_proxy_get_bound_url (RestProxy *proxy); void _rest_proxy_queue_message (RestProxy *proxy, - SoupMessage *message); + SoupMessage *message, + SoupSessionCallback callback, + gpointer user_data); void _rest_proxy_cancel_message (RestProxy *proxy, SoupMessage *message); guint _rest_proxy_send_message (RestProxy *proxy, |