Added return statement to stop start() if there has been an ConnectException.

This commit is contained in:
Boris Schrijver 2015-09-22 00:38:16 +02:00
parent 9693b97c21
commit b34f86c8d5
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@ public abstract class NioConnection implements Callable<Boolean> {
init();
} catch (final ConnectException e) {
s_logger.warn("Unable to connect to remote: is there a server running on port " + _port);
return;
} catch (final IOException e) {
s_logger.error("Unable to initialize the threads.", e);
throw new NioConnectionException(e.getMessage(), e);