summaryrefslogtreecommitdiff
path: root/libsoup/soup-session-sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'libsoup/soup-session-sync.c')
-rw-r--r--libsoup/soup-session-sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsoup/soup-session-sync.c b/libsoup/soup-session-sync.c
index 373b1bde..7a42e466 100644
--- a/libsoup/soup-session-sync.c
+++ b/libsoup/soup-session-sync.c
@@ -153,7 +153,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 {