[libsoup] get: fix to not send the request twice
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] get: fix to not send the request twice
- Date: Sun, 18 Aug 2013 15:24:12 +0000 (UTC)
commit 761ab8aac93e85cadc1c32e1abbd9b87060a65f7
Author: Dan Winship <danw gnome org>
Date: Sun Aug 18 11:23:26 2013 -0400
get: fix to not send the request twice
examples/get.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/examples/get.c b/examples/get.c
index a74991d..a8888d4 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]