Don't finish gtls connection if the handshake failed

https://bugzilla.gnome.org/show_bug.cgi?id=656283
This commit is contained in:
Sjoerd Simons 2011-08-10 15:56:13 +02:00 committed by Matthias Clasen
parent ae496a52a9
commit a9ca74efb1

View File

@ -1151,6 +1151,8 @@ g_socket_client_tls_handshake_callback (GObject *object,
{ {
g_object_unref (data->connection); g_object_unref (data->connection);
data->connection = G_IO_STREAM (object); data->connection = G_IO_STREAM (object);
g_socket_client_async_connect_complete (data);
} }
else else
{ {
@ -1162,8 +1164,6 @@ g_socket_client_tls_handshake_callback (GObject *object,
enumerator_next_async (data); enumerator_next_async (data);
} }
g_socket_client_async_connect_complete (data);
} }
static void static void