return;
}
this.isConnectionInfoSentToBroker = true;
ensureClientIDInitialised();
ConnectionInfo info = new ConnectionInfo();
info.setClientId(this.clientID);
info.setHostName(IdGenerator.getHostName());
info.setUserName(userName);
info.setPassword(password);
info.setStartTime(startTime);
info.setStarted(started.get());
info.setClosed(closed.get() || closing);
info.setClientVersion(connectionMetaData.getProviderVersion());
info.setWireFormatVersion(transportChannel.getCurrentWireFormatVersion());
if (info.getProperties() != null){
info.getProperties().setProperty(ConnectionInfo.NO_DELAY_PROPERTY,new Boolean(!useAsyncSend).toString());
}
if (quickClose && info.isClosed()){
asyncSendPacket(info);
}else {
syncSendPacket(info, timeout);
}
}