summaryrefslogtreecommitdiff
path: root/src/CommonAPI/DBus/DBusFactory.cpp
diff options
context:
space:
mode:
authorJürgen Gehring <juergen.gehring@bmw.de>2015-07-29 00:04:02 -0700
committerJürgen Gehring <juergen.gehring@bmw.de>2015-07-29 00:04:02 -0700
commitdb96446ece67ba1f495811e29838e8c7bc7984ff (patch)
treead49d3368287caf7d201057989db4bd19e37fd0c /src/CommonAPI/DBus/DBusFactory.cpp
parent49d0b428ca19852d49965f35328a314f22d88807 (diff)
downloadgenivi-common-api-dbus-runtime-db96446ece67ba1f495811e29838e8c7bc7984ff.tar.gz
CommonAPI-D-Bus 3.1.33.1.3
Diffstat (limited to 'src/CommonAPI/DBus/DBusFactory.cpp')
-rw-r--r--src/CommonAPI/DBus/DBusFactory.cpp8
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);