* glib/dbus-gmain.c (message_queue_dispatch): only dispatch one
message at a time to avoid monopolizing the main loop, bug
#2953 from Benjamin Otte
+2005-04-13 Havoc Pennington <hp@redhat.com>
+
+ * glib/dbus-gmain.c (message_queue_dispatch): only dispatch one
+ message at a time to avoid monopolizing the main loop, bug
+ #2953 from Benjamin Otte
+
2005-04-09 Havoc Pennington <hp@redhat.com>
* dbus/dbus-string.c (copy): change a memcpy to memmove due to
DBusConnection *connection = ((DBusGMessageQueue *)source)->connection;
dbus_connection_ref (connection);
-
- while (dbus_connection_dispatch (connection) == DBUS_DISPATCH_DATA_REMAINS)
- ;
+
+ /* Only dispatch once - we don't want to starve other GSource */
+ dbus_connection_dispatch (connection);
dbus_connection_unref (connection);