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

Commit 9c90a37c authored by Mike Lockwood's avatar Mike Lockwood
Browse files

Fix wakelock leak in PowerManagerService.sendNotificationLocked()



Change-Id: Ia5f814fe81413dc5350faaf4c79cff47de62d0ed
BUG: 2592894
Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent 842d983c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1125,6 +1125,8 @@ class PowerManagerService extends IPowerManager.Stub
            mBroadcastQueue[0] = on ? 1 : 0;
            mBroadcastQueue[1] = -1;
            mBroadcastQueue[2] = -1;
            mBroadcastWakeLock.release();
            mBroadcastWakeLock.release();
            index = 0;
        }
        if (index == 1 && !on) {