From 7498049a1683db50805b9a9a580b62bb748918f4 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Wed, 20 May 2009 13:59:50 +0200 Subject: [PATCH] Propagate errors from g_network_service_address_enumerator_next_async in its _finish function --- gio/gnetworkservice.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gio/gnetworkservice.c b/gio/gnetworkservice.c index 2c3b87b0d..54d64fd79 100644 --- a/gio/gnetworkservice.c +++ b/gio/gnetworkservice.c @@ -620,6 +620,9 @@ g_network_service_address_enumerator_next_finish (GSocketAddressEnumerator *enu GSimpleAsyncResult *simple = G_SIMPLE_ASYNC_RESULT (result); GSocketAddress *sockaddr; + if (g_simple_async_result_propagate_error (simple, error)) + return NULL; + sockaddr = g_simple_async_result_get_op_res_gpointer (simple); return sockaddr ? g_object_ref (sockaddr) : NULL; }