Adds some logging when there is a problem connecting (connection failed).

cusax-fix
Damian Minkov 14 years ago
parent 22b9b8d92a
commit 6c4ea7048d

@ -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);

Loading…
Cancel
Save