Fix wakelock leak in PowerManagerService.sendNotificationLocked()

Change-Id: Ia5f814fe81413dc5350faaf4c79cff47de62d0ed
BUG: 2592894
Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
Mike Lockwood
2010-04-13 15:40:27 -04:00
parent 842d983cc3
commit 9c90a37c6e

View File

@@ -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) {