diff options
author | Havoc Pennington <hp@redhat.com> | 2005-08-03 17:42:56 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2005-08-03 17:42:56 +0000 |
commit | e3fa86b54a0bdc6a8eaf5def43b1947ddef59c85 (patch) | |
tree | 677f03ccd329c33c992fe8a2d1543ca83713a2af /bus | |
parent | 8a56c704ebeb6c433723f1d9a8db13ea06300022 (diff) |
2005-08-03 Havoc Pennington <hp@redhat.com>
* dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): fix
typo, from Julien Puydt
* bus/connection.c (bus_connection_disconnected): we were always
doing a wait_for_memory due to a buggy loop, found by Timo Hoenig
Diffstat (limited to 'bus')
-rw-r--r-- | bus/connection.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/bus/connection.c b/bus/connection.c index 2e3675f9..90c6b75b 100644 --- a/bus/connection.c +++ b/bus/connection.c @@ -199,12 +199,8 @@ bus_connection_disconnected (DBusConnection *connection) dbus_error_init (&error); - transaction = NULL; - while (transaction == NULL) - { - transaction = bus_transaction_new (d->connections->context); - _dbus_wait_for_memory (); - } + while ((transaction = bus_transaction_new (d->connections->context)) == NULL) + _dbus_wait_for_memory (); if (!bus_service_remove_owner (service, connection, transaction, &error)) |