[libsoup] SoupHTTPInputStream: fix a g_warning in error cases
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] SoupHTTPInputStream: fix a g_warning in error cases
- Date: Sat, 5 Nov 2011 13:28:28 +0000 (UTC)
commit 917650e918ff55d0b78a4784474285ca43e84703
Author: Dan Winship <danw gnome org>
Date: Mon Oct 31 18:34:21 2011 -0400
SoupHTTPInputStream: fix a g_warning in error cases
libsoup/soup-http-input-stream.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libsoup/soup-http-input-stream.c b/libsoup/soup-http-input-stream.c
index 66a3896..8a73884 100644
--- a/libsoup/soup-http-input-stream.c
+++ b/libsoup/soup-http-input-stream.c
@@ -478,9 +478,10 @@ 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)
+ if (!priv->finished) {
+ soup_session_unpause_message (priv->session, priv->msg);
soup_session_cancel_message (priv->session, priv->msg, SOUP_STATUS_CANCELLED);
+ }
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]