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

Commit 0a05c59b authored by David Li's avatar David Li
Browse files

AIDL effect: Stop subeffects before closing

Bug: 303004264
Test: manual test
Change-Id: If2f3d4c8deeaeb83ab84d33251ba253a1560d51c
parent 3c1762c7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -131,6 +131,7 @@ ndk::ScopedAStatus EffectProxy::open(const Parameter::Common& common,
}

ndk::ScopedAStatus EffectProxy::close() {
    command(CommandId::STOP);
    return runWithAllSubEffects([&](std::shared_ptr<IEffect>& effect) {
        return effect->close();
    });