diff options
Diffstat (limited to 'libsoup/soup-server.c')
-rw-r--r-- | libsoup/soup-server.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libsoup/soup-server.c b/libsoup/soup-server.c index fec9ceb7..77b21422 100644 --- a/libsoup/soup-server.c +++ b/libsoup/soup-server.c @@ -2412,9 +2412,9 @@ soup_client_context_steal_connection (SoupClientContext *client) stream = soup_message_io_steal (client->msg); if (stream) { - g_object_set (G_OBJECT (client->sock), - SOUP_SOCKET_CLOSE_ON_DISPOSE, FALSE, - NULL); + g_object_set_data_full (G_OBJECT (stream), "GSocket", + soup_socket_steal_gsocket (client->sock), + g_object_unref); } socket_disconnected (client->sock, client); |