fix webservice reconnection, THE SECOND
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m11s
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m11s
This commit is contained in:
parent
2e2c032ad8
commit
25a2c3c6f9
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue