Revert "soup-message-io: clear connection from queue items when IDLE status is set"
authorDan Winship <danw@gnome.org>
Tue, 5 Jul 2011 01:36:47 +0000 (21:36 -0400)
committerDan Winship <danw@gnome.org>
Tue, 5 Jul 2011 01:36:47 +0000 (21:36 -0400)
This broke tests/proxy-test.

This reverts commit c56c66aa2625bc95f54f8a1972e13503f454a51a.

libsoup/soup-message-io.c

index f9acc8f..ee30b41 100644 (file)
@@ -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"