From e3fa86b54a0bdc6a8eaf5def43b1947ddef59c85 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Wed, 3 Aug 2005 17:42:56 +0000 Subject: 2005-08-03 Havoc Pennington * 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 --- bus/connection.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'bus') 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)) -- cgit