[Xfce4-commits] [xfce/xfconf] 01/05: Flush dbus connection on xfconf_shutdown to flush pending messages.

noreply at xfce.org noreply at xfce.org
Mon Jul 24 13:57:06 CEST 2017


This is an automated email from the git hooks/post-receive script.

a   l   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfconf.

commit 0a78b03788233768a7407376583c640a1c9ad8db
Author: Ali Abdallah <ali at xfce.org>
Date:   Mon Jul 24 13:49:29 2017 +0200

    Flush dbus connection on xfconf_shutdown to flush pending
    messages.
---
 xfconf/xfconf.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/xfconf/xfconf.c b/xfconf/xfconf.c
index c933582..fb2934d 100644
--- a/xfconf/xfconf.c
+++ b/xfconf/xfconf.c
@@ -154,6 +154,9 @@ xfconf_shutdown(void)
         return;
     }
 
+    /* Flush pending dbus calls */
+    g_dbus_connection_flush_sync (gdbus, NULL, NULL);
+
     _xfconf_channel_shutdown();
     _xfconf_g_bindings_shutdown();
 
@@ -231,16 +234,16 @@ void
 xfconf_array_free(GPtrArray *arr)
 {
     guint i;
-    
+
     if(!arr)
         return;
-    
+
     for(i = 0; i < arr->len; ++i) {
         GValue *val = g_ptr_array_index(arr, i);
         g_value_unset(val);
         g_free(val);
     }
-    
+
     g_ptr_array_free(arr, TRUE);
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list