diff options
Diffstat (limited to 'src/CommonAPI/DBus/DBusFactory.cpp')
-rw-r--r-- | src/CommonAPI/DBus/DBusFactory.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/CommonAPI/DBus/DBusFactory.cpp b/src/CommonAPI/DBus/DBusFactory.cpp index 2490e98..2006f5a 100644 --- a/src/CommonAPI/DBus/DBusFactory.cpp +++ b/src/CommonAPI/DBus/DBusFactory.cpp @@ -88,7 +88,7 @@ Factory::createProxy( if (proxyCreateFunctionsIterator != proxyCreateFunctions_.end()) { CommonAPI::Address address(_domain, _interface, _instance); DBusAddress dbusAddress; - + if (DBusAddressTranslator::get()->translate(address, dbusAddress)) { std::shared_ptr<DBusConnection> connection = getConnection(_connectionId); @@ -113,7 +113,7 @@ Factory::createProxy( if (proxyCreateFunctionsIterator != proxyCreateFunctions_.end()) { CommonAPI::Address address(_domain, _interface, _instance); DBusAddress dbusAddress; - + if (DBusAddressTranslator::get()->translate(address, dbusAddress)) { std::shared_ptr<DBusConnection> connection = getConnection(_context); @@ -188,7 +188,7 @@ Factory::unregisterStub(const std::string &_domain, const std::string &_interfac const auto _adapter = adapterResult->second; const auto &connection = _adapter->getDBusConnection(); const auto objectManager = connection->getDBusObjectManager(); - + if (!objectManager->unregisterDBusStubAdapter(_adapter)) { return false; } @@ -462,7 +462,6 @@ void Factory::releaseConnection(const ConnectionId_t& _connectionId) { auto itsConnection = connections_.find(_connectionId); if (itsConnection != connections_.end()) { - DBusServiceRegistry::remove(itsConnection->second); connections_.erase(_connectionId); } } |