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

Commit 54908299 authored by Dan Zhang's avatar Dan Zhang Committed by Gerrit Code Review
Browse files

Merge "Fix HdmiCecLocalDevice concurrent access"

parents e134d23a c4426af9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -660,7 +660,8 @@ abstract class HdmiCecLocalDevice {
    @ServiceThreadOnly
    void startQueuedActions() {
        assertRunOnServiceThread();
        for (HdmiCecFeatureAction action : mActions) {
        // Use copied action list in that start() may remove itself.
        for (HdmiCecFeatureAction action : new ArrayList<>(mActions)) {
            if (!action.started()) {
                Slog.i(TAG, "Starting queued action:" + action);
                action.start();