force timeout on request finished

This commit is contained in:
Gaelle Braud 2026-03-10 09:00:15 +01:00
parent e763a9ad9d
commit 16477442cd
2 changed files with 5 additions and 1 deletions

View file

@ -327,7 +327,7 @@ void OIDCModel::openIdConfigReceived() {
if (document.isNull()) {
lWarning() << log().arg("Reply is empty");
//: OIDC reply is empty !
// emit requestFailed(tr("oidc_authentication_empty_reply_error"));
emit requestFailed(tr("oidc_authentication_empty_reply_error"));
emit finished();
return;
}

View file

@ -439,6 +439,10 @@ void CoreModel::onAuthenticationRequested(const std::shared_ptr<linphone::Core>
mustBeInLinphoneThread(log().arg(Q_FUNC_INFO));
lWarning() << log().arg("Request failed") << error;
emit oidcRequestFailed(error);
});
connect(oidcModel, &OIDCModel::finished, this, [this, oidcModel] {
mustBeInLinphoneThread(log().arg(Q_FUNC_INFO));
lWarning() << log().arg("Request finished");
oidcModel->forceTimeout();
});
if (oidcModel->isTimerRunning()) {