[gupnp/gupnp-1.4] ServiceProxy: Do not check calling proxy in action



commit 814dad7781645ad39fdc16682722b9c4e1566256
Author: Jens Georg <mail jensge org>
Date:   Mon Dec 6 18:32:21 2021 +0100

    ServiceProxy: Do not check calling proxy in action
    
    Fixes regression introduced with 9a6534a4, causing the deprecated GUPnP
    calls to fail

 libgupnp/gupnp-service-proxy.c | 5 -----
 1 file changed, 5 deletions(-)
---
diff --git a/libgupnp/gupnp-service-proxy.c b/libgupnp/gupnp-service-proxy.c
index 9f4b61e..25d5ef6 100644
--- a/libgupnp/gupnp-service-proxy.c
+++ b/libgupnp/gupnp-service-proxy.c
@@ -911,7 +911,6 @@ gupnp_service_proxy_end_action (GUPnPServiceProxy       *proxy,
 
         g_return_val_if_fail (GUPNP_IS_SERVICE_PROXY (proxy), FALSE);
         g_return_val_if_fail (action, FALSE);
-        g_return_val_if_fail (proxy == action->proxy, FALSE);
 
         if (action->error) {
                 g_propagate_error (error, action->error);
@@ -953,7 +952,6 @@ gupnp_service_proxy_end_action_valist (GUPnPServiceProxy       *proxy,
 
         g_return_val_if_fail (GUPNP_IS_SERVICE_PROXY (proxy), FALSE);
         g_return_val_if_fail (action, FALSE);
-        g_return_val_if_fail (proxy == action->proxy, FALSE);
 
         if (action->error) {
                 g_propagate_error (error, action->error);
@@ -1002,7 +1000,6 @@ gupnp_service_proxy_end_action_list (GUPnPServiceProxy       *proxy,
 
         g_return_val_if_fail (GUPNP_IS_SERVICE_PROXY (proxy), FALSE);
         g_return_val_if_fail (action, FALSE);
-        g_return_val_if_fail (proxy == action->proxy, FALSE);
 
         /* Check for saved error from begin_action() */
         if (action->error) {
@@ -1047,7 +1044,6 @@ gupnp_service_proxy_end_action_hash
 
         g_return_val_if_fail (GUPNP_IS_SERVICE_PROXY (proxy), FALSE);
         g_return_val_if_fail (action, FALSE);
-        g_return_val_if_fail (proxy == action->proxy, FALSE);
 
         /* Check for saved error from begin_action() */
         if (action->error) {
@@ -1082,7 +1078,6 @@ gupnp_service_proxy_cancel_action (GUPnPServiceProxy       *proxy,
 {
         g_return_if_fail (GUPNP_IS_SERVICE_PROXY (proxy));
         g_return_if_fail (action);
-        g_return_if_fail (proxy == action->proxy);
 
         if (action->cancellable != NULL) {
                 g_cancellable_cancel (action->cancellable);


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