From 5136cc352a63ca3dc516a6539fe75561274ec833 Mon Sep 17 00:00:00 2001 From: Bernd Wachter Date: Mon, 11 Mar 2013 13:42:18 +0200 Subject: [PATCH] Change credentials timeout to 30 minutes --- libssu/ssu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libssu/ssu.cpp b/libssu/ssu.cpp index 2059de2..882dcb8 100644 --- a/libssu/ssu.cpp +++ b/libssu/ssu.cpp @@ -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; }