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
This commit is contained in:
Dan Winship 2010-08-30 09:23:09 -04:00
parent b8ff287167
commit a3cc274fc6

View File

@ -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
{