Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a5ee4e1 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "audio VTS: Fix call to IDevice::close in V6 tests" am: e82bfc64 am:...

Merge "audio VTS: Fix call to IDevice::close in V6 tests" am: e82bfc64 am: b479a279 am: b092fd62

Change-Id: Ia7809f75b5138a774b0543d21b983c07a417c9b1
parents c732ff91 b092fd62
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -113,7 +113,11 @@ class DeviceManager : public InterfaceManager<DeviceManager, FactoryAndDevice, I
#elif MAJOR_VERSION >= 6
        {
            sp<IDevice> device = getExisting(std::make_tuple(factoryName, name));
            if (device != nullptr) device->close();
            if (device != nullptr) {
                auto ret = device->close();
                ALOGE_IF(!ret.isOk(), "Device %s::%s close failed: %s", factoryName.c_str(),
                         name.c_str(), ret.description().c_str());
            }
        }
        return InterfaceManager::reset(std::make_tuple(factoryName, name), false);
#endif