mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-08 10:14:04 +02:00
GSocketClient - Free last error if a connection attempt fails and on retry the cancellable is cancelled
This commit is contained in:
@@ -1006,6 +1006,7 @@ g_socket_client_connect (GSocketClient *client,
|
|||||||
if (g_cancellable_is_cancelled (cancellable))
|
if (g_cancellable_is_cancelled (cancellable))
|
||||||
{
|
{
|
||||||
g_clear_error (error);
|
g_clear_error (error);
|
||||||
|
g_clear_error (&last_error);
|
||||||
g_cancellable_set_error_if_cancelled (cancellable, error);
|
g_cancellable_set_error_if_cancelled (cancellable, error);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user