mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
Propagate errors from g_network_service_address_enumerator_next_async in its _finish function
This commit is contained in:
parent
2be66c0458
commit
7498049a16
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user