summaryrefslogtreecommitdiff
path: root/src/CommonAPI/DBus/DBusFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/CommonAPI/DBus/DBusFactory.cpp')
-rw-r--r--src/CommonAPI/DBus/DBusFactory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CommonAPI/DBus/DBusFactory.cpp b/src/CommonAPI/DBus/DBusFactory.cpp
index 6371da9..40da41f 100644
--- a/src/CommonAPI/DBus/DBusFactory.cpp
+++ b/src/CommonAPI/DBus/DBusFactory.cpp
@@ -230,7 +230,7 @@ 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>(dbusType);
+ = std::make_shared<DBusConnection>(dbusType, _connectionId);
connections_.insert({ _connectionId, itsConnection });
itsConnection->connect(true);
@@ -249,7 +249,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>(DBusType_t::SESSION);
+ = std::make_shared<DBusConnection>(DBusType_t::SESSION, _context->getName());
contextConnections_.insert({ _context.get(), itsConnection } );
itsConnection->connect(false);