Added checks for shutdown while trying to connect (or reconnect)

This commit is contained in:
nathan 2018-01-17 21:41:20 +01:00
parent 6d09887de1
commit 3e28b68e16

View File

@ -291,6 +291,10 @@ class Client<C extends Connection> extends EndPointClient<C> implements Connecti
synchronized (shutdownInProgress) {
}
if (isShutdown()) {
throw new IOException("Unable to connect when shutdown...");
}
if (localChannelName != null) {
logger.info("Connecting to local server: {}", localChannelName);
}