Fix wakelock leak in PowerManagerService.sendNotificationLocked()
Change-Id: Ia5f814fe81413dc5350faaf4c79cff47de62d0ed BUG: 2592894 Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user