diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2022-03-07 17:36:21 +0300 |
---|---|---|
committer | Fabian Müller <80399010+fmoc@users.noreply.github.com> | 2022-03-08 17:40:31 +0300 |
commit | bfe6990e2ff423b1c3537e711f030912289c2ad3 (patch) | |
tree | e81d7a3079e5d91e2fe09d24715c56a501e4ddab /src/gui/accountstate.cpp | |
parent | e5c62f90c3c38037605c5557ffda4b54552b7a5e (diff) |
CheckServerJob: clear cookies under more circumstances
Diffstat (limited to 'src/gui/accountstate.cpp')
-rw-r--r-- | src/gui/accountstate.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/accountstate.cpp b/src/gui/accountstate.cpp index 9a42c0cc2..b04181a97 100644 --- a/src/gui/accountstate.cpp +++ b/src/gui/accountstate.cpp @@ -311,10 +311,7 @@ void AccountState::checkConnectivity(bool blockJobs) // Use a small authed propfind as a minimal ping when we're // already connected. if (blockJobs) { - if (Theme::instance()->connectionValidatorClearCookies()) { - // clear the cookies directly before we try to validate - connect(_connectionValidator, &ConnectionValidator::aboutToStart, _account.get(), &Account::clearCookieJar, Qt::DirectConnection); - } + _connectionValidator->setClearCookies(true); _connectionValidator->checkServer(); } else { _connectionValidator->checkServerAndUpdate(); @@ -335,6 +332,7 @@ void AccountState::checkConnectivity(bool blockJobs) // ssl config that does not have a sensible certificate chain. account()->setSslConfiguration(QSslConfiguration()); //#endif + account()->clearCookieJar(); _connectionValidator->checkServerAndUpdate(); } } |