summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Eljasiewicz <m.eljasiewic@samsung.com>2014-01-10 10:02:40 +0100
committerLubomir Rintel <lkundrak@v3.sk>2015-02-11 11:55:32 +0100
commit005c68ee25735901f9ec4b3200cebebeceb992fa (patch)
treef99197e62e11f98931dfb9510964b9b2ffc1c667
parent90567baafa24c5f98476e8a7696ec00a342393c6 (diff)
[Test] Fix for bus test - NameOwnerChanged not received.
Change-Id: Ifeee08c1db4a45ce7830f6f8528391e14c9aa8eb Signed-off-by: Michal Eljasiewicz <m.eljasiewic@samsung.com>
-rw-r--r--bus/dispatch.c8
1 files 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