From e442b9f3bf6887725cab314ae62f477c39db758e Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Mon, 28 Feb 2022 21:56:23 +0000 Subject: [PATCH] CTFWS: Tidy conditional If the Now rationale value is NR_GAME_IN_PROGRESS then it must be the case that the Now is !stop. It's not clear what this was meant to accomplish. --- .../acmetensortoys/ctfwstimer/lib/CtFwSGameStateManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/main/java/com/acmetensortoys/ctfwstimer/lib/CtFwSGameStateManager.java b/lib/src/main/java/com/acmetensortoys/ctfwstimer/lib/CtFwSGameStateManager.java index 56764d6..2dcd17f 100644 --- a/lib/src/main/java/com/acmetensortoys/ctfwstimer/lib/CtFwSGameStateManager.java +++ b/lib/src/main/java/com/acmetensortoys/ctfwstimer/lib/CtFwSGameStateManager.java @@ -352,7 +352,7 @@ public class CtFwSGameStateManager { private synchronized void notifyNow() { mT.cancelPost(futureNotifyNow); Now n = getNow(mT.wallMS()); - if (n.rationale == NowRationale.NR_GAME_IN_PROGRESS || !n.stop) { + if (!n.stop) { mT.postDelay(futureNotifyNow, n.roundEnd*1000 - n.wallMS); } for (Observer o : mObsvs) { o.onCtFwSNow(this, n); } -- 2.50.1