From 7d4c397809652b76c45280faff4f102a17e3052b Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 11 Jan 2020 15:58:02 +0100 Subject: [PATCH] Fixing possible double cancelling issue Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/countdown/Countdown.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FightSystem_Main/src/de/steamwar/fightsystem/countdown/Countdown.java b/FightSystem_Main/src/de/steamwar/fightsystem/countdown/Countdown.java index c26acc1..5dd4a40 100644 --- a/FightSystem_Main/src/de/steamwar/fightsystem/countdown/Countdown.java +++ b/FightSystem_Main/src/de/steamwar/fightsystem/countdown/Countdown.java @@ -50,7 +50,8 @@ public abstract class Countdown { } public void disable() { - task.cancel(); + if(!task.isCancelled()) + task.cancel(); } private void broadcast(String message){