From a9ca74efb11bda0a90f482a44bb2ec214744ecc6 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Wed, 10 Aug 2011 15:56:13 +0200 Subject: [PATCH] Don't finish gtls connection if the handshake failed https://bugzilla.gnome.org/show_bug.cgi?id=656283 --- gio/gsocketclient.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gio/gsocketclient.c b/gio/gsocketclient.c index 21bb7d9ad..814f0e815 100644 --- a/gio/gsocketclient.c +++ b/gio/gsocketclient.c @@ -1151,6 +1151,8 @@ g_socket_client_tls_handshake_callback (GObject *object, { g_object_unref (data->connection); data->connection = G_IO_STREAM (object); + + g_socket_client_async_connect_complete (data); } else { @@ -1162,8 +1164,6 @@ g_socket_client_tls_handshake_callback (GObject *object, enumerator_next_async (data); } - - g_socket_client_async_connect_complete (data); } static void