Skip to content

Commit

Permalink
Fixed crashing when using timer
Browse files Browse the repository at this point in the history
  • Loading branch information
biylda committed Apr 29, 2017
1 parent dd2ff73 commit 3a1e405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenWIGLibrary/src/cz/matejcik/openwig/Timer.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public void tick () {
Engine.callEvent(this, "OnTick", null);
lastTick = System.currentTimeMillis();
updateRemaining();
if (type == COUNTDOWN) {
if (type == COUNTDOWN && task != null) {
task.cancel();
task = null;
}
Expand Down

0 comments on commit 3a1e405

Please sign in to comment.