fix oidc crash

This commit is contained in:
Gaelle Braud 2026-03-10 11:53:47 +01:00
parent 00f94690c8
commit 9aa5e1d8b3

View file

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