diff --git a/src/CommonAPI/DBus/DBusObjectManager.cpp b/src/CommonAPI/DBus/DBusObjectManager.cpp index cf5fbc2..f7cd147 100644 --- a/src/CommonAPI/DBus/DBusObjectManager.cpp +++ b/src/CommonAPI/DBus/DBusObjectManager.cpp @@ -267,6 +267,15 @@ bool DBusObjectManager::removeDBusInterfaceHandler(const DBusInterfaceHandlerPat dbusRegisteredObjectsTable_.erase(dbusRegisteredObjectsTableIter); } } + if(dbusInterfaceHandler->hasFreedesktopProperties()) + { + const auto& dbusRegisteredObjectsTableIter = dbusRegisteredObjectsTable_.find({dbusInterfaceHandlerPath.first, "org.freedesktop.DBus.Properties"}); + const bool isDBusInterfaceHandlerAdded = (dbusRegisteredObjectsTableIter != dbusRegisteredObjectsTable_.end()); + if(isDBusInterfaceHandlerAdded) + { + dbusRegisteredObjectsTable_.erase(dbusRegisteredObjectsTableIter); + } + } } return isDBusInterfaceHandlerAdded;