From 25a2c3c6f982e22992ee77ad024eac87ed474a33 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Thu, 13 Jun 2024 15:18:41 +0200 Subject: [PATCH] fix webservice reconnection, THE SECOND --- .../de/com/baseband/client/util/net/WebServiceClient.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Client/src/main/java/de/com/baseband/client/util/net/WebServiceClient.java b/Client/src/main/java/de/com/baseband/client/util/net/WebServiceClient.java index a56bc25..8122031 100644 --- a/Client/src/main/java/de/com/baseband/client/util/net/WebServiceClient.java +++ b/Client/src/main/java/de/com/baseband/client/util/net/WebServiceClient.java @@ -22,7 +22,7 @@ public class WebServiceClient { return; try { try(Socket client = new Socket("baseband.com.de", 40000)) { - client.setSoTimeout(15000); + client.setSoTimeout(7000); client.getOutputStream().write(1); // client mode inputStream = new TypedInputStream(client.getInputStream()); outputStream = new TypedOutputStream(client.getOutputStream()); @@ -55,8 +55,6 @@ public class WebServiceClient { } } } - inputStream = null; - outputStream = null; } } catch (IOException e) { if(!wasEverConnected) { @@ -64,6 +62,8 @@ public class WebServiceClient { BaseBand.shutdown(); } } + inputStream = null; + outputStream = null; } public static boolean outdated = false;