[gupnp] ServiceProxy: Prevent critical on shutdown



commit 9f53c21f8f8b0546050e51a28d5e42523fc69b0e
Author: Jens Georg <mail jensge org>
Date:   Sat Feb 5 21:07:31 2022 +0100

    ServiceProxy: Prevent critical on shutdown
    
    If the notification timer ran, do not destroy the source twice

 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 8eb7aa2..60b290e 100644
--- a/libgupnp/gupnp-service-proxy.c
+++ b/libgupnp/gupnp-service-proxy.c
@@ -234,7 +234,6 @@ gupnp_service_proxy_dispose (GObject *object)
             soup_server_remove_handler (server, priv->path);
         }
 
-
         if (priv->pending_messages)
                 g_cancellable_cancel (priv->pending_messages);
         g_clear_object (&priv->pending_messages);
@@ -890,6 +889,8 @@ emit_notifications (gpointer user_data)
                 subscribe (proxy);
         }
 
+        priv->notify_idle_src = NULL;
+
         return FALSE;
 }
 


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