From f63456766fbd23f951d84abdb4c1e25b21bc5daa Mon Sep 17 00:00:00 2001 From: LoRd_MuldeR Date: Sun, 21 Oct 2018 00:24:08 +0200 Subject: [PATCH] Fixed typo in variable name. --- src/UpdateChecker.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/UpdateChecker.cpp b/src/UpdateChecker.cpp index b665243..671155d 100644 --- a/src/UpdateChecker.cpp +++ b/src/UpdateChecker.cpp @@ -224,11 +224,11 @@ void MUtils::UpdateChecker::checkForUpdates(void) int connectionScore = 0; QQueue mirrorList = buildRandomList(known_hosts); - for(int connectionTimout = 1000; connectionTimout <= MAX_CONN_TIMEOUT; connectionTimout *= 2) + for(int connectionTimeout = 1000; connectionTimeout <= MAX_CONN_TIMEOUT; connectionTimeout *= 2) { QElapsedTimer elapsedTimer; elapsedTimer.start(); - const qint64 globalTimeout = 2 * MIN_CONNSCORE * connectionTimout; + const qint64 globalTimeout = 2 * MIN_CONNSCORE * connectionTimeout; forever { if (mirrorList.isEmpty()) @@ -236,7 +236,7 @@ void MUtils::UpdateChecker::checkForUpdates(void) goto endLoop; /*depleted!*/ } const QString hostName = mirrorList.dequeue(); - if (tryContactHost(hostName, connectionTimout)) + if (tryContactHost(hostName, connectionTimeout)) { setProgress(1 + (++connectionScore)); if (connectionScore >= MIN_CONNSCORE)