Skip to content

Commit

Permalink
Merge pull request #101 from hawkup/fix-wakelock-unlock
Browse files Browse the repository at this point in the history
Check WakeLock is being held, before release.
  • Loading branch information
ocetnik authored Aug 27, 2018
2 parents df38d4f + 892e926 commit 6d7b0a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void onHostPause() {

@Override
public void onHostDestroy() {
wakeLock.release();
if (wakeLock.isHeld()) wakeLock.release();
}
};

Expand Down

0 comments on commit 6d7b0a0

Please sign in to comment.