mirror of
https://github.com/workinghard/GuitarTeX2.git
synced 2025-12-14 02:42:09 +00:00
New GTX client due to server rework
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user