|
|
|
|
@ -666,6 +666,8 @@ private void connectAndLogin(SecurityAuthority authority,
|
|
|
|
|
|
|
|
|
|
if (addrs == null || addrs.length == 0)
|
|
|
|
|
{
|
|
|
|
|
logger.error("No server addresses found");
|
|
|
|
|
|
|
|
|
|
fireRegistrationStateChanged(
|
|
|
|
|
getRegistrationState(),
|
|
|
|
|
RegistrationState.CONNECTION_FAILED,
|
|
|
|
|
@ -1144,6 +1146,8 @@ else if (tlsRequired)
|
|
|
|
|
// addConnectionListener is not handled properly
|
|
|
|
|
disconnectAndCleanConnection();
|
|
|
|
|
|
|
|
|
|
logger.error("Connection not established, server not found!");
|
|
|
|
|
|
|
|
|
|
fireRegistrationStateChanged(getRegistrationState(),
|
|
|
|
|
RegistrationState.CONNECTION_FAILED,
|
|
|
|
|
RegistrationStateChangeEvent.REASON_SERVER_NOT_FOUND, null);
|
|
|
|
|
|