From 005c68ee25735901f9ec4b3200cebebeceb992fa Mon Sep 17 00:00:00 2001 From: Michal Eljasiewicz Date: Fri, 10 Jan 2014 10:02:40 +0100 Subject: [Test] Fix for bus test - NameOwnerChanged not received. Change-Id: Ifeee08c1db4a45ce7830f6f8528391e14c9aa8eb Signed-off-by: Michal Eljasiewicz --- bus/dispatch.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/bus/dispatch.c b/bus/dispatch.c index 7a41353b..77158009 100644 --- a/bus/dispatch.c +++ b/bus/dispatch.c @@ -223,12 +223,8 @@ bus_dispatch (DBusConnection *connection, #endif /* DBUS_ENABLE_VERBOSE_MODE */ /* Create our transaction */ - transaction = bus_transaction_new (context); - if (transaction == NULL) - { - BUS_SET_OOM (&error); - goto out; - } + while ((transaction = bus_transaction_new (context)) == NULL) + _dbus_wait_for_memory (); /* If service_name is NULL, if it's a signal we send it to all * connections with a match rule. If it's not a signal, there -- cgit v1.2.3