From: Mu-Woong Lee Date: Sun, 30 Jul 2017 08:08:46 +0000 (+0900) Subject: Store the dbus connection while launching the service X-Git-Tag: submit/tizen/20170802.043634^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=167b804c8889322297fa707a820a41bdf36ee4c4;p=platform%2Fcore%2Fcontext%2Fcontext-service.git Store the dbus connection while launching the service Change-Id: I64dd3781ddf584f441c08bb4406c9eeaf3ac377e Signed-off-by: Mu-Woong Lee (cherry picked from commit 8651f15591a87f0fd1113cf893b98ac2e9dbde87) --- 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); }