diff options
Diffstat (limited to 'src/CommonAPI/DBus/DBusFactory.cpp')
-rw-r--r-- | src/CommonAPI/DBus/DBusFactory.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/CommonAPI/DBus/DBusFactory.cpp b/src/CommonAPI/DBus/DBusFactory.cpp index 4f7e0b9..f75619c 100644 --- a/src/CommonAPI/DBus/DBusFactory.cpp +++ b/src/CommonAPI/DBus/DBusFactory.cpp @@ -28,7 +28,7 @@ Factory::get() { } Factory::Factory() - : defaultBusType_(DBusType_t::SESSION) { + : dBusBusType_(DBusAddressTranslator::get()->getDBusBusType()) { } Factory::~Factory() { @@ -225,7 +225,7 @@ Factory::getConnection(const ConnectionId_t &_connectionId) { // No connection found, lets create and initialize one std::shared_ptr<DBusConnection> itsConnection - = std::make_shared<DBusConnection>(defaultBusType_); + = std::make_shared<DBusConnection>(dBusBusType_); connections_.insert({ _connectionId, itsConnection }); itsConnection->connect(true); @@ -244,7 +244,7 @@ Factory::getConnection(std::shared_ptr<MainLoopContext> _context) { // No connection found, lets create and initialize one std::shared_ptr<DBusConnection> itsConnection - = std::make_shared<DBusConnection>(defaultBusType_); + = std::make_shared<DBusConnection>(dBusBusType_); contextConnections_.insert({ _context.get(), itsConnection } ); itsConnection->connect(false); |