gsocketclient: Add a missing connection_attempt_remove() call

The connection attempt should always be removed before being unreffed.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
Philip Withnall 2023-11-29 16:19:06 +00:00
parent f5f418b057
commit da48656ee7

View File

@ -1932,6 +1932,7 @@ g_socket_client_connected_callback (GObject *source,
if (task_completed_or_cancelled (data) || g_cancellable_is_cancelled (attempt->cancellable)) if (task_completed_or_cancelled (data) || g_cancellable_is_cancelled (attempt->cancellable))
{ {
g_object_unref (data->task); g_object_unref (data->task);
connection_attempt_remove (attempt);
connection_attempt_unref (attempt); connection_attempt_unref (attempt);
return; return;
} }