Store the dbus connection while launching the service 78/141278/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Sun, 30 Jul 2017 08:08:46 +0000 (17:08 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Sun, 30 Jul 2017 08:08:46 +0000 (17:08 +0900)
Change-Id: I64dd3781ddf584f441c08bb4406c9eeaf3ac377e
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
src/server/ServerMain.cpp

index 8bee8e4111383943c2aa3bed63053f5c204714b0..312574df4adba43a7dd19301468cdf66efe4dd16 100644 (file)
@@ -22,6 +22,7 @@
 #include <stdexcept>
 
 #include <ContextTypes.h>
+#include <ServerUtil.h>
 #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);
 }