diff --git a/Linphone/core/App.cpp b/Linphone/core/App.cpp index a5fa076cc..d04ee888a 100644 --- a/Linphone/core/App.cpp +++ b/Linphone/core/App.cpp @@ -1256,16 +1256,12 @@ void App::onExitOnCloseChanged() { void App::onAuthenticationRequested(const std::shared_ptr &core, const std::shared_ptr &authInfo, linphone::AuthMethod method) { - bool authInfoIsInAccounts = false; for (auto &account : core->getAccountList()) { auto accountAuthInfo = account->findAuthInfo(); if (authInfo && accountAuthInfo && authInfo->isEqualButAlgorithms(accountAuthInfo)) { - authInfoIsInAccounts = true; - if (account->getState() == linphone::RegistrationState::Ok) return; break; } } - if (!authInfoIsInAccounts) return; mCoreModelConnection->invokeToCore([this, core, authInfo, method]() { auto window = App::getInstance()->getMainWindow(); if (!window) {