From: Sergio Villar Senin Date: Thu, 27 Oct 2011 13:00:31 +0000 (+0200) Subject: soup-http-input-stream: unpause the SoupMessage before cancelling it. X-Git-Tag: LIBSOUP_2_37_2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2ec9af5efab3410e40dc84ca37264b58878727e3;p=platform%2Fupstream%2Flibsoup.git soup-http-input-stream: unpause the SoupMessage before cancelling it. If we try to close a SoupHttpInputStream before the SoupMessage is finished and the SoupMessage is in paused state, it will remain paused forever. Unpause the SoupMessage before actually cancelling it. https://bugzilla.gnome.org/show_bug.cgi?id=662847 --- diff --git a/libsoup/soup-http-input-stream.c b/libsoup/soup-http-input-stream.c index a4c8c2a..66a3896 100644 --- a/libsoup/soup-http-input-stream.c +++ b/libsoup/soup-http-input-stream.c @@ -478,6 +478,7 @@ soup_http_input_stream_close (GInputStream *stream, { SoupHTTPInputStreamPrivate *priv = SOUP_HTTP_INPUT_STREAM_GET_PRIVATE (stream); + soup_session_unpause_message (priv->session, priv->msg); if (!priv->finished) soup_session_cancel_message (priv->session, priv->msg, SOUP_STATUS_CANCELLED);