Propagate errors from g_network_service_address_enumerator_next_async in its _finish function

This commit is contained in:
Sjoerd Simons 2009-05-20 13:59:50 +02:00 committed by Alexander Larsson
parent 2be66c0458
commit 7498049a16

View File

@ -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;
}