mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-31 04:43:06 +02:00
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:
parent
b8ff287167
commit
a3cc274fc6
@ -1083,6 +1083,9 @@ g_socket_client_socket_callback (GSocket *socket,
|
|||||||
data->current_socket = NULL;
|
data->current_socket = NULL;
|
||||||
g_cancellable_set_error_if_cancelled (data->cancellable,
|
g_cancellable_set_error_if_cancelled (data->cancellable,
|
||||||
&data->last_error);
|
&data->last_error);
|
||||||
|
|
||||||
|
g_socket_client_async_connect_complete (data);
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user