Avoid infinite loop when deleting an account when registration is not enabled

This commit is contained in:
Gautier Pelloux-Prayer 2014-07-18 10:46:52 +02:00
parent 7051daa9cb
commit 5e55fcd36f

View file

@ -687,7 +687,10 @@ public class LinphonePreferences {
@Override
public void run() {
while(proxyCfg.getState() != RegistrationState.RegistrationCleared && proxyCfg.getState() != RegistrationState.RegistrationFailed){}
while(proxyCfg.getState() != RegistrationState.RegistrationCleared
&& proxyCfg.getState() != RegistrationState.RegistrationFailed
&& proxyCfg.getState() != RegistrationState.RegistrationNone){
}
if (authInfo != null)
getLc().removeAuthInfo(authInfo);
if (proxyCfg != null)