[glib] GSocketClient: fix a crash on cancellation
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GSocketClient: fix a crash on cancellation
- Date: Mon, 30 Aug 2010 13:36:24 +0000 (UTC)
commit a3cc274fc681f5266b621f730d3d8eef811e41cf
Author: Dan Winship <danw gnome org>
Date: Mon Aug 30 09:23:09 2010 -0400
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 files changed, 3 insertions(+), 0 deletions(-)
---
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
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]