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:
Lorenzo Colitti
2016-04-11 17:08:10 +09:00
parent 39d2bb56b6
commit ae107afe8e

View File

@@ -243,7 +243,7 @@ final class NativeDaemonConnector implements Runnable, Handler.Callback, Watchdo
log("Problem parsing message " + e);
} finally {
if (releaseWl) {
mWakeLock.acquire();
mWakeLock.release();
}
}