From a931c295d272e282f47b52a7526dde0bd4941254 Mon Sep 17 00:00:00 2001 From: Vibhav Pant Date: Sun, 27 Aug 2023 12:24:36 +0530 Subject: [PATCH] initBusConnections: Start an async event loop after creating connections. --- internal/platform/implementation/linux/dbus.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/platform/implementation/linux/dbus.cc b/internal/platform/implementation/linux/dbus.cc index b329a8a9..cf3ba938 100644 --- a/internal/platform/implementation/linux/dbus.cc +++ b/internal/platform/implementation/linux/dbus.cc @@ -17,8 +17,10 @@ static absl::once_flag bus_connection_init_; static void initBusConnections() { global_system_bus_connection = sdbus::createSystemBusConnection("/com/github/google/nearby"); + global_system_bus_connection->enterEventLoopAsync(); global_default_bus_connection = sdbus::createDefaultBusConnection("/com/github/google/nearby"); + global_default_bus_connection->enterEventLoopAsync(); } sdbus::IConnection &getSystemBusConnection() {