From afa03f27a2fb442800f148fb28da1f7585a2f02f Mon Sep 17 00:00:00 2001 From: Chris Pinkham Date: Wed, 2 Jan 2013 10:36:24 -0800 Subject: [PATCH] Bump MDM::downloadNow() timeout up to 60 seconds. The previous 10-second timeout was causing issues when trying to download large lineups from Schedules Direct. This commit bumps the downloadNow() timeout to 60 seconds. This is a blocking call, so if the caller doesn't want to potentially block for that long, they should be use one of the non-blocking methods. Fixes #11287. --- mythtv/libs/libmythbase/mythdownloadmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mythtv/libs/libmythbase/mythdownloadmanager.cpp b/mythtv/libs/libmythbase/mythdownloadmanager.cpp index 024a6d09003..18b2c9b057a 100644 --- a/mythtv/libs/libmythbase/mythdownloadmanager.cpp +++ b/mythtv/libs/libmythbase/mythdownloadmanager.cpp @@ -814,7 +814,7 @@ bool MythDownloadManager::downloadNow(MythDownloadInfo *dlInfo, bool deleteInfo) while ((!dlInfo->IsDone()) && (dlInfo->m_errorCode == QNetworkReply::NoError) && (((!dlInfo->m_url.startsWith("myth://")) && - (dlInfo->m_lastStat.secsTo(MythDate::current()) < 10)) || + (dlInfo->m_lastStat.secsTo(MythDate::current()) < 60)) || ((dlInfo->m_url.startsWith("myth://")) && (startedAt.secsTo(MythDate::current()) < 20)))) {