summaryrefslogtreecommitdiff
path: root/src/nxmaccessmanager.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2020-07-10 15:55:13 -0400
committerGitHub <noreply@github.com>2020-07-10 15:55:13 -0400
commit4fc61c7cd4befb79beabc2cc4e6b8b9a954db95c (patch)
tree5fe16c49d0fd410ba1c3440c5a09c36fb3128904 /src/nxmaccessmanager.cpp
parent69b86b206b2b659653b6f3c6cece77bf8c10ab0a (diff)
parent315776799fe38b09b4c0684bd4c1236bdf2e329e (diff)
Merge pull request #1152 from isanae/small-fixes
Small fixes
Diffstat (limited to 'src/nxmaccessmanager.cpp')
-rw-r--r--src/nxmaccessmanager.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nxmaccessmanager.cpp b/src/nxmaccessmanager.cpp
index 0064f888..2fe676ba 100644
--- a/src/nxmaccessmanager.cpp
+++ b/src/nxmaccessmanager.cpp
@@ -611,17 +611,19 @@ void NexusKeyValidator::start(const QString& key, Behaviour b)
m_key = key;
+ const auto timeouts = Settings::instance().nexus().validationTimeouts();
+
switch (b)
{
case OneShot:
{
- createAttempts({10s});
+ createAttempts({timeouts[0]});
break;
}
case Retry:
{
- createAttempts({10s, 15s, 20s});
+ createAttempts(timeouts);
break;
}
}