From 67535eed93ba51e8068204a0d2491daa6b8329e0 Mon Sep 17 00:00:00 2001 From: garbagemule Date: Tue, 25 Feb 2014 03:32:44 +0100 Subject: [PATCH] Null internal timer in CountdownTimer on finish. --- src/com/garbagemule/MobArena/util/timer/CountdownTimer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/garbagemule/MobArena/util/timer/CountdownTimer.java b/src/com/garbagemule/MobArena/util/timer/CountdownTimer.java index 678fa42..28920e9 100644 --- a/src/com/garbagemule/MobArena/util/timer/CountdownTimer.java +++ b/src/com/garbagemule/MobArena/util/timer/CountdownTimer.java @@ -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; }