From a3cc274fc681f5266b621f730d3d8eef811e41cf Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Mon, 30 Aug 2010 09:23:09 -0400 Subject: [PATCH] GSocketClient: fix a crash on cancellation some code rearrangement when adding proxy support resulted in trying to use a GSocket that wasn't there. https://bugzilla.gnome.org/show_bug.cgi?id=628296 --- gio/gsocketclient.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gio/gsocketclient.c b/gio/gsocketclient.c index 604522b..85496fc 100644 --- a/gio/gsocketclient.c +++ b/gio/gsocketclient.c @@ -1083,6 +1083,9 @@ g_socket_client_socket_callback (GSocket *socket, data->current_socket = NULL; g_cancellable_set_error_if_cancelled (data->cancellable, &data->last_error); + + g_socket_client_async_connect_complete (data); + return FALSE; } else { -- 2.7.4