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

Commit 27b5d2e2 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Skip unlock requests for users who aren't running.

Bug: 28111989
Change-Id: I80b6dd1e5a2d919b0a198667e18b7979effe6999
parent 42884197
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -893,8 +893,9 @@ final class UserController {
    boolean unlockUserCleared(final int userId, byte[] token, byte[] secret,
            ProgressReporter progress) {
        synchronized (mService) {
            // Bail if already running unlocked
            // Bail if already running unlocked, or if not running at all
            final UserState uss = mStartedUsers.get(userId);
            if (uss == null) return false;
            switch (uss.state) {
                case STATE_RUNNING_UNLOCKING:
                case STATE_RUNNING_UNLOCKED: