From 061e94d876255d03cfdd4d8393f0f1016a4df15b Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Tue, 5 May 2020 20:01:49 +0200 Subject: [PATCH] =?UTF-8?q?Minsker=20tiden=20klienten=20venter=20p=C3=A5?= =?UTF-8?q?=20svar=20fra=20en=20server?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inf112/fiasko/roborally/networking/RoboRallyClient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/inf112/fiasko/roborally/networking/RoboRallyClient.java b/src/main/java/inf112/fiasko/roborally/networking/RoboRallyClient.java index 8114e2a..5726c2b 100644 --- a/src/main/java/inf112/fiasko/roborally/networking/RoboRallyClient.java +++ b/src/main/java/inf112/fiasko/roborally/networking/RoboRallyClient.java @@ -36,7 +36,7 @@ public class RoboRallyClient { * @throws IOException If the server cannot be connected to */ public void connect(String ipAddress, int serverPort) throws IOException { - client.connect(5000, ipAddress, serverPort, serverPort); + client.connect(1000, ipAddress, serverPort, serverPort); } /** @@ -46,7 +46,7 @@ public class RoboRallyClient { * @return A list of server ip addresses */ public List getLanServers(int UDPPort) { - return client.discoverHosts(UDPPort, 1000); + return client.discoverHosts(UDPPort, 500); } /**