Skip to content

Commit

Permalink
MythDownloadManager: make sure the cookieJar is created in the right …
Browse files Browse the repository at this point in the history
…thread.

The cookieJar is created the first time it is accessed. This just makes sure
it it is created in the same thread as the QNetworkAccessManager otherwise Qt
starts to complain.
  • Loading branch information
Paul Harrison committed May 21, 2011
1 parent 65e06b5 commit bd964e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/libs/libmythbase/mythdownloadmanager.cpp
Expand Up @@ -199,6 +199,8 @@ void MythDownloadManager::run(void)
gCoreContext->GetHostName());
m_manager->setCache(m_diskCache);

// make sure the cookieJar is created in the same thread as the manager
m_manager->cookieJar();

QObject::connect(m_manager, SIGNAL(finished(QNetworkReply*)), this,
SLOT(downloadFinished(QNetworkReply*)));
Expand Down

0 comments on commit bd964e1

Please sign in to comment.