If we want to release the lock, release instead of acquiring it.
The intent of this code seems pretty clearly to release the lock, not acquire it. This is bad since it's a refcounted wakelock. Change-Id: I0f7590ab697133bd82db8a1a515453316c6a80dc
This commit is contained in:
@@ -243,7 +243,7 @@ final class NativeDaemonConnector implements Runnable, Handler.Callback, Watchdo
|
||||
log("Problem parsing message " + e);
|
||||
} finally {
|
||||
if (releaseWl) {
|
||||
mWakeLock.acquire();
|
||||
mWakeLock.release();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user