Skip to content

Commit

Permalink
Check WakeLock is being held, before release.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanarat committed Aug 26, 2018
1 parent df38d4f commit 892e926
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 892e926

Please sign in to comment.