summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
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;