]> hydra-www.ietfng.org Git - acmetensortoys-ctfws-android/commitdiff
CTFWS: Tidy conditional
authorNathaniel Wesley Filardo <nwfilardo@gmail.com>
Mon, 28 Feb 2022 21:56:23 +0000 (21:56 +0000)
committerNathaniel Wesley Filardo <nwfilardo@gmail.com>
Wed, 2 Mar 2022 23:39:37 +0000 (23:39 +0000)
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.

lib/src/main/java/com/acmetensortoys/ctfwstimer/lib/CtFwSGameStateManager.java

index 56764d6b73a6bb47acdecacfba5f18d75a81a983..2dcd17f53d4d74f89571f4ac6569c70054ec7b8d 100644 (file)
@@ -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); }