From 4af5bc1d3414b540dca896faff2a111cbc824fe2 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Mon, 4 Jul 2011 21:36:47 -0400 Subject: [PATCH] Revert "soup-message-io: clear connection from queue items when IDLE status is set" This broke tests/proxy-test. This reverts commit c56c66aa2625bc95f54f8a1972e13503f454a51a. --- libsoup/soup-message-io.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libsoup/soup-message-io.c b/libsoup/soup-message-io.c index f9acc8f..ee30b41 100644 --- a/libsoup/soup-message-io.c +++ b/libsoup/soup-message-io.c @@ -146,11 +146,8 @@ soup_message_io_stop (SoupMessage *msg) if (io->read_state < SOUP_MESSAGE_IO_STATE_FINISHING) soup_socket_disconnect (io->sock); - else if (io->item && io->item->conn) { + else if (io->item && io->item->conn) soup_connection_set_state (io->item->conn, SOUP_CONNECTION_IDLE); - g_object_unref (io->item->conn); - io->item->conn = NULL; - } } #define SOUP_MESSAGE_IO_EOL "\r\n" -- 2.7.4