qhttpthreaddelegate: check that we have a reply set when reading.

Make sure that we always have a reply set when we try to read.

Change-Id: Ib3ce9063bffc9810fc2a4fb52ee1a65b7f8cdfa0
Reviewed-by: Prasanth Ullattil <prasanth.ullattil@nokia.com>
This commit is contained in:
Martin Petersson 2012-05-11 11:50:02 +02:00 committed by Qt by Nokia
parent 7a67c822e3
commit 417fc1f759

View File

@ -374,6 +374,9 @@ void QHttpThreadDelegate::readBufferFreed(qint64 size)
void QHttpThreadDelegate::readyReadSlot()
{
if (!httpReply)
return;
// Don't do in zerocopy case
if (!downloadBuffer.isNull())
return;