diff options
Diffstat (limited to 'bus/connection.c')
-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)) |