Skip to content

Commit

Permalink
Bump MDM::downloadNow() timeout up to 60 seconds.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cpinkham committed Jan 2, 2013
1 parent f9768e1 commit afa03f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/mythdownloadmanager.cpp
Expand Up @@ -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))))
{
Expand Down

0 comments on commit afa03f2

Please sign in to comment.