Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #20 from 1immortal/patch-2
Browse files Browse the repository at this point in the history
Update buttonListener.java
  • Loading branch information
micrusa authored Jul 2, 2020
2 parents 92cbe91 + b2bf12a commit 5e6b100
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public void stop() {
executor = null;
listening = false;
}
if (wakeLock.isHeld())
if (wakeLock != null && wakeLock.isHeld())
wakeLock.release();
}

Expand Down

0 comments on commit 5e6b100

Please sign in to comment.