[gupnp/wip/phako/reusable-service-action] fixup! ServiceProxy: Set action->error for legacy calls



commit 855e431be900fef5c5c54c873dc0c72452cd02d1
Author: Jens Georg <mail jensge org>
Date:   Sat May 29 02:30:57 2021 +0200

    fixup! ServiceProxy: Set action->error for legacy calls

 libgupnp/gupnp-service-proxy.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/libgupnp/gupnp-service-proxy.c b/libgupnp/gupnp-service-proxy.c
index 7b6afd8..80540c8 100644
--- a/libgupnp/gupnp-service-proxy.c
+++ b/libgupnp/gupnp-service-proxy.c
@@ -551,7 +551,8 @@ on_legacy_async_callback (GObject *source, GAsyncResult *res, gpointer user_data
         /* Do not perform legacy call-back if action is cancelled, to comply with the old implementation */
         if (action->callback != NULL &&
             !g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
-                g_propagate_error (&action->error, error);
+                if (error != NULL)
+                        g_propagate_error (&action->error, error);
                 action->callback (action->proxy, action, action->user_data);
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]