[AT-SPI] Use async D-Bus call in some Socket methods 27/285427/1
authorArtur Świgoń <a.swigon@samsung.com>
Mon, 12 Dec 2022 14:39:46 +0000 (15:39 +0100)
committerArtur Świgoń <a.swigon@samsung.com>
Mon, 12 Dec 2022 14:40:43 +0000 (15:40 +0100)
Change-Id: I45c2f0ad514d47de9e3a7d389aafb488ab2366a7

dali/internal/accessibility/bridge/bridge-impl.cpp

index e274ad8..b4df08e 100644 (file)
@@ -786,14 +786,14 @@ public:
   {
     auto client = CreateSocketClient(socket);
 
-    client.method<void(std::string)>("Embedded").call(ATSPI_PREFIX_PATH + plug.GetPath());
+    client.method<void(std::string)>("Embedded").asyncCall([](DBus::ValueOrError<void>) {}, ATSPI_PREFIX_PATH + plug.GetPath());
   }
 
   void UnembedSocket(const Address& plug, const Address& socket) override
   {
     auto client = CreateSocketClient(socket);
 
-    client.method<void(Address)>("Unembed").call(plug);
+    client.method<void(Address)>("Unembed").asyncCall([](DBus::ValueOrError<void>) {}, plug);
   }
 
   void SetSocketOffset(ProxyAccessible* socket, std::int32_t x, std::int32_t y) override