summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2013-08-18 11:23:26 -0400
committerDan Winship <danw@gnome.org>2013-08-18 11:23:26 -0400
commit761ab8aac93e85cadc1c32e1abbd9b87060a65f7 (patch)
treef5657268decbbfe0065aa90d19947f90a741cf27 /examples
parent8524d46134bce62ee6d8a534a56c24da90651b9c (diff)
downloadlibsoup-761ab8aac93e85cadc1c32e1abbd9b87060a65f7.tar.gz
get: fix to not send the request twice
Diffstat (limited to 'examples')
-rw-r--r--examples/get.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/get.c b/examples/get.c
index a74991dc..a8888d49 100644
--- a/examples/get.c
+++ b/examples/get.c
@@ -35,9 +35,8 @@ get_url (const char *url)
g_object_ref (msg);
soup_session_queue_message (session, msg, finished, loop);
g_main_loop_run (loop);
- }
-
- soup_session_send_message (session, msg);
+ } else
+ soup_session_send_message (session, msg);
name = soup_message_get_uri (msg)->path;