New GTX client due to server rework

This commit is contained in:
2024-07-06 17:17:52 +02:00
parent 53b6787f52
commit 2a627919c1
14 changed files with 344 additions and 548 deletions

View File

@@ -402,7 +402,17 @@ final class Configurations {
}
public int getGtxServerPort() {
return Integer.parseInt(mProperties.getProperty("gtxServerPort"));
int serverPort = -1;
try {
serverPort = Integer.parseInt(mProperties.getProperty("gtxServerPort"));
}catch (Exception e) {
// It's fine to have empty field
}
if ( serverPort > 0 ) {
return serverPort;
}else{
return -1;
}
}
public void setGtxServerPort(String mValue) {