fix webservice reconnection, THE SECOND
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m11s

This commit is contained in:
Daniella / Tove 2024-06-13 15:18:41 +02:00
parent 2e2c032ad8
commit 25a2c3c6f9
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -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;