Skip to content

Commit b34f86c

Browse files
author
Boris Schrijver
committed
Added return statement to stop start() if there has been an ConnectException.
1 parent 9693b97 commit b34f86c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎utils/src/main/java/com/cloud/utils/nio/NioConnection.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ public void start() throws NioConnectionException {
8888
init();
8989
} catch (final ConnectException e) {
9090
s_logger.warn("Unable to connect to remote: is there a server running on port " + _port);
91+
return;
9192
} catch (final IOException e) {
9293
s_logger.error("Unable to initialize the threads.", e);
9394
throw new NioConnectionException(e.getMessage(), e);

0 commit comments

Comments
 (0)