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

Commit 90372e1f authored by Heather Lee Wilson's avatar Heather Lee Wilson Committed by Android Git Automerger
Browse files

am 6827949f: am d237cbac: Merge "Prevent crashing when disabling MCU during...

am 6827949f: am d237cbac: Merge "Prevent crashing when disabling MCU during dream wakeup" into klp-modular-dev

* commit '6827949f':
  Prevent crashing when disabling MCU during dream wakeup
parents aeac6d8e 6827949f
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);
                }