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

Commit 684f4ed4 authored by David Li's avatar David Li Committed by Android (Google) Code Review
Browse files

Merge "AIDL effect: Stop subeffects before closing" into main

parents 0abe1dd1 0a05c59b
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();
    });