[Test] Fix for bus test - NameOwnerChanged not received.
authorMichal Eljasiewicz <m.eljasiewic@samsung.com>
Fri, 10 Jan 2014 09:02:40 +0000 (10:02 +0100)
committerMichal Eljasiewicz <m.eljasiewic@samsung.com>
Fri, 10 Jan 2014 10:09:59 +0000 (11:09 +0100)
Change-Id: Ifeee08c1db4a45ce7830f6f8528391e14c9aa8eb
Signed-off-by: Michal Eljasiewicz <m.eljasiewic@samsung.com>
bus/dispatch.c

index a7d4c37..0630b20 100644 (file)
@@ -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