mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-04 10:16:17 +01:00
Merge branch 'wip/tingping/socket-cancellation' into 'master'
gsocketclient: Ensure task is always returned on cancel Closes libsoup#132 See merge request GNOME/glib!647
This commit is contained in:
commit
eac2b1a1c3
@ -1567,7 +1567,7 @@ g_socket_client_connected_callback (GObject *source,
|
|||||||
GProxy *proxy;
|
GProxy *proxy;
|
||||||
const gchar *protocol;
|
const gchar *protocol;
|
||||||
|
|
||||||
if (g_cancellable_is_cancelled (attempt->cancellable) || task_completed_or_cancelled (data->task))
|
if (task_completed_or_cancelled (data->task) || g_cancellable_is_cancelled (attempt->cancellable))
|
||||||
{
|
{
|
||||||
g_object_unref (data->task);
|
g_object_unref (data->task);
|
||||||
connection_attempt_unref (attempt);
|
connection_attempt_unref (attempt);
|
||||||
|
Loading…
Reference in New Issue
Block a user