Avoid infinite loop when deleting an account when registration is not enabled
This commit is contained in:
parent
7051daa9cb
commit
5e55fcd36f
1 changed files with 139 additions and 136 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue