summaryrefslogtreecommitdiffstats
path: root/logic/auth/YggdrasilTask.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/auth/YggdrasilTask.cpp')
-rw-r--r--logic/auth/YggdrasilTask.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/logic/auth/YggdrasilTask.cpp b/logic/auth/YggdrasilTask.cpp
index 277d7bfd..7679b11f 100644
--- a/logic/auth/YggdrasilTask.cpp
+++ b/logic/auth/YggdrasilTask.cpp
@@ -54,7 +54,7 @@ void YggdrasilTask::executeTask()
counter.setSingleShot(false);
counter.start(time_step);
progress(0, timeout_max);
- connect(&timeout_keeper, &QTimer::timeout, this, &YggdrasilTask::abort);
+ connect(&timeout_keeper, &QTimer::timeout, this, &YggdrasilTask::abortByTimeout);
connect(&counter, &QTimer::timeout, this, &YggdrasilTask::heartbeat);
}
@@ -76,6 +76,12 @@ void YggdrasilTask::abort()
m_netReply->abort();
}
+void YggdrasilTask::abortByTimeout()
+{
+ progress(timeout_max, timeout_max);
+ m_netReply->abort();
+}
+
void YggdrasilTask::sslErrors(QList<QSslError> errors)
{
int i = 1;