I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 5d0d7aca authored by zzz's avatar zzz
Browse files

minor cleanup

parent 29d0c19b
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,7 @@ public class ClientListenerRunner implements Runnable { ...@@ -43,7 +43,7 @@ public class ClientListenerRunner implements Runnable {
_running = false; _running = false;
_listening = false; _listening = false;
String val = context.getProperty(BIND_ALL_INTERFACES, "False"); String val = context.getProperty(BIND_ALL_INTERFACES);
_bindAllInterfaces = Boolean.valueOf(val).booleanValue(); _bindAllInterfaces = Boolean.valueOf(val).booleanValue();
} }
......
...@@ -49,18 +49,8 @@ public class ClientManagerFacadeImpl extends ClientManagerFacade { ...@@ -49,18 +49,8 @@ public class ClientManagerFacadeImpl extends ClientManagerFacade {
public void startup() { public void startup() {
_log.info("Starting up the client subsystem"); _log.info("Starting up the client subsystem");
String portStr = _context.router().getConfigSetting(PROP_CLIENT_PORT); int port = _context.getProperty(PROP_CLIENT_PORT, DEFAULT_PORT);
if (portStr != null) { _manager = new ClientManager(_context, port);
try {
int port = Integer.parseInt(portStr);
_manager = new ClientManager(_context, port);
} catch (NumberFormatException nfe) {
_log.error("Error setting the port: " + portStr + " is not valid", nfe);
_manager = new ClientManager(_context, DEFAULT_PORT);
}
} else {
_manager = new ClientManager(_context, DEFAULT_PORT);
}
} }
public void shutdown() { public void shutdown() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment