Added checks for shutdown while trying to connect (or reconnect)
This commit is contained in:
parent
6d09887de1
commit
3e28b68e16
@ -291,6 +291,10 @@ class Client<C extends Connection> extends EndPointClient<C> implements Connecti
|
|||||||
synchronized (shutdownInProgress) {
|
synchronized (shutdownInProgress) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isShutdown()) {
|
||||||
|
throw new IOException("Unable to connect when shutdown...");
|
||||||
|
}
|
||||||
|
|
||||||
if (localChannelName != null) {
|
if (localChannelName != null) {
|
||||||
logger.info("Connecting to local server: {}", localChannelName);
|
logger.info("Connecting to local server: {}", localChannelName);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user