[glib: 1/2] GSocketClient - Free last error if a connection attempt fails and on retry the cancellable is cancel
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] GSocketClient - Free last error if a connection attempt fails and on retry the cancellable is cancel
- Date: Fri, 15 Mar 2019 11:47:14 +0000 (UTC)
commit 499c201472dfcd917acdd065fcf76b4c5a9883a3
Author: Sebastian Dröge <sebastian centricular com>
Date: Tue Mar 12 10:32:56 2019 +0100
GSocketClient - Free last error if a connection attempt fails and on retry the cancellable is cancelled
gio/gsocketclient.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gio/gsocketclient.c b/gio/gsocketclient.c
index 9db7ca0be..ca7807a75 100644
--- a/gio/gsocketclient.c
+++ b/gio/gsocketclient.c
@@ -1006,6 +1006,7 @@ g_socket_client_connect (GSocketClient *client,
if (g_cancellable_is_cancelled (cancellable))
{
g_clear_error (error);
+ g_clear_error (&last_error);
g_cancellable_set_error_if_cancelled (cancellable, error);
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]