diff options
author | Havoc Pennington <hp@redhat.com> | 2005-04-13 14:10:21 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2005-04-13 14:10:21 +0000 |
commit | 893f5b7bf561922dafae9d8397b82ee9ee35ad49 (patch) | |
tree | 535913ae26ab82af071502b78714122d8b11c44f /glib | |
parent | 6606169cbcf17dd06dfa7f9e25d9c1c33b0bf080 (diff) |
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
Diffstat (limited to 'glib')
-rw-r--r-- | glib/dbus-gmain.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/glib/dbus-gmain.c b/glib/dbus-gmain.c index 57be8490..1843f224 100644 --- a/glib/dbus-gmain.c +++ b/glib/dbus-gmain.c @@ -103,9 +103,9 @@ message_queue_dispatch (GSource *source, 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); |