about summary refs log tree commit diff
path: root/libnm-glib/nm-remote-settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnm-glib/nm-remote-settings.c')
-rw-r--r--libnm-glib/nm-remote-settings.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libnm-glib/nm-remote-settings.c b/libnm-glib/nm-remote-settings.c
index 19d865c0..7748f4f0 100644
--- a/libnm-glib/nm-remote-settings.c
+++ b/libnm-glib/nm-remote-settings.c
@@ -1035,6 +1035,17 @@ init_async (GAsyncInitable *initable, int io_priority,
 	                         G_TYPE_INVALID);
 }
 
+static gboolean
+init_finish (GAsyncInitable *initable, GAsyncResult *result, GError **error)
+{
+	GSimpleAsyncResult *simple = G_SIMPLE_ASYNC_RESULT (result);
+
+	if (g_simple_async_result_propagate_error (simple, error))
+		return FALSE;
+	else
+		return TRUE;
+}
+
 static void
 dispose (GObject *object)
 {
@@ -1198,4 +1209,5 @@ static void
 nm_remote_settings_async_initable_iface_init (GAsyncInitableIface *iface)
 {
 	iface->init_async = init_async;
+	iface->init_finish = init_finish;
 }