Revert "SoupConnection: disconnect on failed connections/tunnels"
authorDan Winship <danw@gnome.org>
Mon, 7 Jan 2013 20:50:36 +0000 (15:50 -0500)
committerDan Winship <danw@gnome.org>
Mon, 7 Jan 2013 20:56:25 +0000 (15:56 -0500)
commitc2ce0f99c1551161fdf6e13a9f83bf8cb656b6d6
tree6f7441883d05b917d43f35fa448c2c9cca67ba7a
parent0cb3c8293b37ade115118096298b002a7a9f7c9c
Revert "SoupConnection: disconnect on failed connections/tunnels"

Disconnecting clears priv->sock, and in some cases, the caller may
want to look at that after the failed connection. So switch this back
to having the session do the disconnecting itself (which is simpler
now due to various SoupSession rewrites), and remove one inconsistent
case where the connection was disconnecting itself before.

This reverts commit 21d707d66460233596a04f6dc99c945d2dbc3085.
libsoup/soup-connection.c
libsoup/soup-session.c