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

Commit d237cbac authored by Heather Lee Wilson's avatar Heather Lee Wilson Committed by Android (Google) Code Review
Browse files

Merge "Prevent crashing when disabling MCU during dream wakeup" into klp-modular-dev

parents fe997295 9da8301e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -642,8 +642,9 @@ public final class DreamManagerService extends SystemService {
            try {
                synchronized (mMcuHal) {
                    if (mReleased) {
                        throw new IllegalStateException("This operation cannot be performed "
                                + "because the dream has ended.");
                        Slog.w(TAG, "Ignoring message to MCU HAL because the dream "
                                + "has already ended: " + msg);
                        return null;
                    }
                    return mMcuHal.sendMessage(msg, arg);
                }