mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-23 11:06:14 +01:00
Null internal timer in CountdownTimer on finish.
This commit is contained in:
parent
bf8c244fce
commit
67535eed93
@ -212,8 +212,9 @@ public class CountdownTimer extends AbstractTimer {
|
||||
synchronized (CountdownTimer.this) {
|
||||
remaining -= interval;
|
||||
|
||||
// If we're done, call onFinish() and bail
|
||||
// If we're done, null timer, call onFinish(), and bail
|
||||
if (remaining <= 0l) {
|
||||
timer = null;
|
||||
callback.onFinish();
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user