mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-10 21:03:51 +01:00
GSocketClient - Free last error if a connection attempt fails and on retry the cancellable is cancelled
This commit is contained in:
parent
1a03ebc43a
commit
499c201472
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user