[gupnp] ServiceProxy: Fix error propagation in sync call
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp] ServiceProxy: Fix error propagation in sync call
- Date: Sun, 23 Jan 2022 15:17:16 +0000 (UTC)
commit a23561d3e17f0d44aeda79495083220e95951aa8
Author: Jens Georg <mail jensge org>
Date: Sun Jan 23 16:11:42 2022 +0100
ServiceProxy: Fix error propagation in sync call
libgupnp/gupnp-service-proxy.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/libgupnp/gupnp-service-proxy.c b/libgupnp/gupnp-service-proxy.c
index a022619..031ab9e 100644
--- a/libgupnp/gupnp-service-proxy.c
+++ b/libgupnp/gupnp-service-proxy.c
@@ -1599,8 +1599,6 @@ gupnp_service_proxy_call_action (GUPnPServiceProxy *proxy,
&internal_error);
if (internal_error != NULL) {
- g_propagate_error (error, internal_error);
-
goto out;
}
@@ -1623,6 +1621,7 @@ gupnp_service_proxy_call_action (GUPnPServiceProxy *proxy,
out:
if (internal_error != NULL) {
+ action->error = g_error_copy (internal_error);
g_propagate_error (error, internal_error);
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]