aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/streamreader.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/streamreader.cpp b/lib/streamreader.cpp
index 914846335..d43f8c4f8 100644
--- a/lib/streamreader.cpp
+++ b/lib/streamreader.cpp
@@ -136,13 +136,10 @@ void StreamReader::updateTitle()
const QString &StreamReader::contentType()
{
- while (m_contentType.isEmpty() && m_downloader->isRunning())
- {
- m_downloader->mutex()->lock ();
- m_contentType = m_downloader->contentType();
- m_downloader->mutex()->unlock();
- qApp->processEvents();
- }
+ m_downloader->mutex()->lock ();
+ m_contentType = m_downloader->contentType();
+ m_downloader->mutex()->unlock();
+ qApp->processEvents();
qDebug("StreamReader: content type: %s", qPrintable(m_contentType));
return m_contentType;
}