From 49ee585e3e73710875797dfe6233fe89b0d632d9 Mon Sep 17 00:00:00 2001 From: Seraina Date: Thu, 28 Apr 2022 18:30:57 +0200 Subject: [PATCH] Removed ghostVoteTimer from vote handler, so that the game works again --- .../ch/unibas/dmi/dbis/cs108/gamelogic/VoteHandler.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/ch/unibas/dmi/dbis/cs108/gamelogic/VoteHandler.java b/src/main/java/ch/unibas/dmi/dbis/cs108/gamelogic/VoteHandler.java index 27d85d5..bd1f758 100644 --- a/src/main/java/ch/unibas/dmi/dbis/cs108/gamelogic/VoteHandler.java +++ b/src/main/java/ch/unibas/dmi/dbis/cs108/gamelogic/VoteHandler.java @@ -50,7 +50,12 @@ public class VoteHandler { } } - Timer.ghostVoteTimer(game); + //Timer.ghostVoteTimer(game); + try { + Thread.sleep(10*1000); + } catch (InterruptedException e) { + LOGGER.warn("Thread " + Thread.currentThread() + " was interrupted"); + } int currentMax = ghostVoteEvaluation(passengers, votesForPlayers, game.getGameState().getClientVoteData(), game);