From 167b804c8889322297fa707a820a41bdf36ee4c4 Mon Sep 17 00:00:00 2001 From: Mu-Woong Lee Date: Sun, 30 Jul 2017 17:08:46 +0900 Subject: [PATCH] Store the dbus connection while launching the service Change-Id: I64dd3781ddf584f441c08bb4406c9eeaf3ac377e Signed-off-by: Mu-Woong Lee (cherry picked from commit 8651f15591a87f0fd1113cf893b98ac2e9dbde87) --- src/server/ServerMain.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server/ServerMain.cpp b/src/server/ServerMain.cpp index 8bee8e4..312574d 100644 --- a/src/server/ServerMain.cpp +++ b/src/server/ServerMain.cpp @@ -22,6 +22,7 @@ #include #include +#include #include "DBusConnector.h" #include "ServiceLoader.h" #include "ActiveUserMonitor.h" @@ -94,6 +95,7 @@ static gboolean __stop_service(gpointer data) static void __bus_acquired(GDBusConnection* conn) { + util::set_dbus_connection(conn); __start_service(conn); } -- 2.34.1