diff options
author | Sergio Villar Senin <svillar@igalia.com> | 2011-09-26 19:09:31 +0200 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2011-09-29 10:36:25 -0400 |
commit | d8108886c151bd0f190e949cf3e64d2a137a13a0 (patch) | |
tree | 94fd1e35bcad342f10949dc4ceae65d5da70e650 /libsoup/soup-session-sync.c | |
parent | 5cb220971a58d00616711d8ba04b7eaff89445a5 (diff) | |
download | libsoup-d8108886c151bd0f190e949cf3e64d2a137a13a0.tar.gz |
SoupSession: set the connection to IDLE on unqueuing SoupMessages
Connection should be set to IDLE state only after being 100% sure that is
not going to be reused by the current owner.
Also, fix a bug in SoupSessionSync revealed by this change.
https://bugzilla.gnome.org/show_bug.cgi?id=651146
Diffstat (limited to 'libsoup/soup-session-sync.c')
-rw-r--r-- | libsoup/soup-session-sync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsoup/soup-session-sync.c b/libsoup/soup-session-sync.c index aecbf6f7..7bd76ea8 100644 --- a/libsoup/soup-session-sync.c +++ b/libsoup/soup-session-sync.c @@ -155,7 +155,7 @@ tunnel_connect (SoupSession *session, SoupMessageQueueItem *related) soup_session_send_queue_item (session, item, NULL); status = item->msg->status_code; if (item->state == SOUP_MESSAGE_RESTARTING && - soup_connection_get_state (conn) != SOUP_CONNECTION_DISCONNECTED) { + soup_message_io_in_progress (item->msg)) { item->state = SOUP_MESSAGE_STARTING; soup_message_restarted (item->msg); } else { |