mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-17 20:08:28 +00:00
force timeout on request finished
This commit is contained in:
parent
e763a9ad9d
commit
16477442cd
2 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue