Browse files

prevent eternal waiting

  • Loading branch information...
1 parent 59134da commit fccb7170dfebbf3dd72660fea9e3a7f5bd8e553d @winniehell winniehell committed Aug 3, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/org/andengine/engine/handler/timer/TimerHandler.java
View
8 src/org/andengine/engine/handler/timer/TimerHandler.java
@@ -33,8 +33,8 @@ public TimerHandler(final float pTimerSeconds, final ITimerCallback pTimerCallba
}
public TimerHandler(final float pTimerSeconds, final boolean pAutoReset, final ITimerCallback pTimerCallback) {
- if(pTimerSeconds < 0){
- throw new IllegalStateException("pTimerSeconds must be >= 0!");
+ if(pTimerSeconds <= 0){
+ throw new IllegalStateException("pTimerSeconds must be > 0!");
}
this.mTimerSeconds = pTimerSeconds;
@@ -55,8 +55,8 @@ public void setAutoReset(final boolean pAutoReset) {
}
public void setTimerSeconds(final float pTimerSeconds) {
- if(pTimerSeconds < 0){
- throw new IllegalStateException("pTimerSeconds must be >= 0!");
+ if(pTimerSeconds <= 0){
+ throw new IllegalStateException("pTimerSeconds must be > 0!");
}
this.mTimerSeconds = pTimerSeconds;

0 comments on commit fccb717

Please sign in to comment.