diff options
Diffstat (limited to 'src/CommonAPI/DBus/DBusFactory.cpp')
-rw-r--r-- | src/CommonAPI/DBus/DBusFactory.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/CommonAPI/DBus/DBusFactory.cpp b/src/CommonAPI/DBus/DBusFactory.cpp index f75619c..afe5ad7 100644 --- a/src/CommonAPI/DBus/DBusFactory.cpp +++ b/src/CommonAPI/DBus/DBusFactory.cpp @@ -27,8 +27,7 @@ Factory::get() { return theFactory; } -Factory::Factory() - : dBusBusType_(DBusAddressTranslator::get()->getDBusBusType()) { +Factory::Factory() { } Factory::~Factory() { @@ -224,8 +223,9 @@ Factory::getConnection(const ConnectionId_t &_connectionId) { } // No connection found, lets create and initialize one + DBusType_t dbusType = DBusAddressTranslator::get()->getDBusBusType(_connectionId); std::shared_ptr<DBusConnection> itsConnection - = std::make_shared<DBusConnection>(dBusBusType_); + = std::make_shared<DBusConnection>(dbusType); 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>(dBusBusType_); + = std::make_shared<DBusConnection>(DBusType_t::SESSION); contextConnections_.insert({ _context.get(), itsConnection } ); itsConnection->connect(false); |