Commit 2378b2c9 authored by Carlos Garcia Campos's avatar Carlos Garcia Campos
Browse files

connection: IO should always be reusable at soup_connection_setup_message_io()

parent 813ae7ad
Pipeline #289270 passed with stages
in 5 minutes and 31 seconds
......@@ -1110,10 +1110,8 @@ soup_connection_setup_message_io (SoupConnection *conn,
if (priv->proxy_uri && soup_message_get_method (msg) == SOUP_METHOD_CONNECT)
set_proxy_msg (conn, msg);
if (!soup_client_message_io_is_reusable (priv->io_data)) {
g_clear_pointer (&priv->io_data, soup_client_message_io_destroy);
soup_connection_create_io_data (conn);
if (!soup_client_message_io_is_reusable (priv->io_data))
g_warn_if_reached ();
return priv->io_data;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment