From a6fac4c1b3c114d3e2238f743574bb0961d5b3f6 Mon Sep 17 00:00:00 2001 From: Seraina Date: Mon, 18 Apr 2022 17:01:22 +0200 Subject: [PATCH] increased vote time to 60 seconds --- .../ch/unibas/dmi/dbis/cs108/gamelogic/VoteHandler.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 00296e5..900fd51 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 @@ -52,7 +52,7 @@ public class VoteHandler { } try { // waits 20 seconds before votes get collected - Thread.sleep(30*1000); + Thread.sleep(60*1000); } catch (InterruptedException e) { LOGGER.warn("Thread " + Thread.currentThread() + " was interrupted"); } @@ -82,7 +82,7 @@ public class VoteHandler { passengers[ghostPosition].send( ClientGameInfoHandler.youGotGhostyfied, game); } - try { // waits 20 seconds before votes get collected + try { Thread.sleep(10); } catch (InterruptedException e) { LOGGER.warn("Thread " + Thread.currentThread() + " was interrupted"); @@ -144,7 +144,7 @@ public class VoteHandler { } try { // waits 20 seconds before votes get collected - Thread.sleep(20*1000); + Thread.sleep(60*1000); } catch (InterruptedException e) { LOGGER.warn("Thread " + Thread.currentThread() + " was interrupted"); }