Setting more appropriate RegistrationState on error.

fix-message-formatting
Danny van Heumen 12 years ago
parent 9201294faf
commit 1e8b0fcbb7

@ -221,7 +221,7 @@ public void onFailure(Exception e)
// the exception if one exists
this.provider
.setCurrentRegistrationState(
RegistrationState.UNREGISTERED);
RegistrationState.CONNECTION_FAILED);
Exception e = result.getException();
if (e != null)
throw e;
@ -229,9 +229,10 @@ public void onFailure(Exception e)
}
catch (IOException e)
{
// Also SSL exceptions will be caught here.
this.provider
.setCurrentRegistrationState(
RegistrationState.UNREGISTERED);
RegistrationState.CONNECTION_FAILED);
throw e;
}
catch (InterruptedException e)

Loading…
Cancel
Save