[Pommed-commits] r488 - trunk/pommed

jblache at alioth.debian.org jblache at alioth.debian.org
Sat Jun 7 09:48:29 UTC 2008


Author: jblache
Date: 2008-06-07 09:48:28 +0000 (Sat, 07 Jun 2008)
New Revision: 488

Modified:
   trunk/pommed/dbus.c
Log:
Dispatch DBus messages right after handling the watch events.


Modified: trunk/pommed/dbus.c
===================================================================
--- trunk/pommed/dbus.c	2008-06-07 09:38:03 UTC (rev 487)
+++ trunk/pommed/dbus.c	2008-06-07 09:48:28 UTC (rev 488)
@@ -881,6 +881,12 @@
 
 	      dbus_watch_handle(w->watch, flags);
 
+	      do
+		{
+		  ds = dbus_connection_dispatch(conn);
+		}
+	      while (ds == DBUS_DISPATCH_DATA_REMAINS);
+
 	      /* Get out of the loop, as DBus will remove the watches
 	       * and our linked list can become invalid under our feet
 	       */
@@ -889,12 +895,6 @@
 	    }
 	}
     }
-
-  do
-    {
-      ds = dbus_connection_dispatch(conn);
-    }
-  while (ds == DBUS_DISPATCH_DATA_REMAINS);
 }
 
 static dbus_bool_t




More information about the Pommed-commits mailing list