summaryrefslogtreecommitdiff
path: root/libsoup/soup-message-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'libsoup/soup-message-io.c')
-rw-r--r--libsoup/soup-message-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsoup/soup-message-io.c b/libsoup/soup-message-io.c
index 03dc4333..6ba29607 100644
--- a/libsoup/soup-message-io.c
+++ b/libsoup/soup-message-io.c
@@ -988,7 +988,7 @@ soup_message_io_run_until_finish (SoupMessage *msg,
g_object_ref (msg);
if (io) {
- g_return_if_fail (io->mode == SOUP_MESSAGE_IO_CLIENT);
+ g_return_val_if_fail (io->mode == SOUP_MESSAGE_IO_CLIENT, FALSE);
if (io->read_state < SOUP_MESSAGE_IO_STATE_BODY_DONE)
io->read_state = SOUP_MESSAGE_IO_STATE_FINISHING;