Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Change credentials timeout to 30 minutes
  • Loading branch information
Bernd Wachter committed Mar 11, 2013
1 parent 6955e01 commit 5136cc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libssu/ssu.cpp
Expand Up @@ -682,12 +682,12 @@ void Ssu::updateCredentials(bool force){
}

if (!force){
// skip updating if the last update was less than a day ago
// skip updating if the last update was less than 30 minutes ago
QDateTime now = QDateTime::currentDateTime();

if (settings->contains("lastCredentialsUpdate")){
QDateTime last = settings->value("lastCredentialsUpdate").toDateTime();
if (last >= now.addDays(-1)){
if (last >= now.addSecs(-1800)){
emit done();
return;
}
Expand Down

0 comments on commit 5136cc3

Please sign in to comment.